﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.BandedGrid;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Card;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using Dictionary;
    using HRM.CORE;
    using HRM.CORE.Process;
    using HRM.CORE.REPORT;
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Common;
    using Dictionary.ERP;
    using Security.ERP;
    using Extra.ERP;

    public class xucEmployee : Common.xucBase
    {
        private Bar bar1;
        private BarButtonItem barButtonItem1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarSubItem barSubItem1;
        private BarSubItem barSubItem2;
        private BarSubItem barSubItem3;
        private BarSubItem barSubItem4;
        private BarButtonItem bbiAddBranch;
        private BarButtonItem bbiAddDepartment;
        private BarButtonItem bbiAddEmployee;
        private BarButtonItem bbiAddGroup;
        private BarButtonItem bbiAdvance;
        private BarButtonItem bbiAllowance;
        private BarButtonItem bbiAssignment;
        private BarButtonItem bbiBirthday;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiContract;
        private BarButtonItem bbiDelete;
        private BarButtonItem bbiDiscipline;
        private BarButtonItem bbiEdit;
        private BarButtonItem bbiEditCode;
        private BarButtonItem bbiExport;
        private BarEditItem bbiFilter;
        private BarButtonItem bbiImport;
        private BarButtonItem bbiPosition;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiPrint1;
        private BarButtonItem bbiRate;
        private BarButtonItem bbiRefresh;
        private BarButtonItem bbiReward;
        private BarButtonItem bbiSalary;
        private BarButtonItem bbiSchedule;
        private BarButtonItem bbiTraining;
        private BarButtonItem bbiTransfer;
        private BandedGridColumn colBasicSalary;
        private BandedGridColumn colBeginDate;
        private BandedGridColumn colBirthday;
        private BandedGridColumn colBirthdayDay;
        private BandedGridColumn colBirthdayMonth;
        private BandedGridColumn colBirthdayYear;
        private BandedGridColumn colBirthPlace;
        private BandedGridColumn colBranch;
        private BandedGridColumn colCellPhone;
        private BandedGridColumn colContactAddress;
        private BandedGridColumn colContractCode;
        private BandedGridColumn colContractFromDate;
        private BandedGridColumn colContractSignDate;
        private BandedGridColumn colContractToDate;
        private BandedGridColumn colContractType;
        private BandedGridColumn colDateSalary;
        private BandedGridColumn colDepartment;
        private BandedGridColumn colDescription;
        private BandedGridColumn colEducation;
        private BandedGridColumn colEmail;
        private BandedGridColumn colEmployeeCode;
        private BandedGridColumn colEndDate;
        private BandedGridColumn colEnrollNumber;
        private BandedGridColumn colEthnic;
        private BandedGridColumn colFirstName;
        private BandedGridColumn colGender;
        private BandedGridColumn colGroup;
        private BandedGridColumn colHealth;
        private BandedGridColumn colHeight;
        private BandedGridColumn colHomePhone;
        private BandedGridColumn colIDCard;
        private BandedGridColumn colIDCardDate;
        private BandedGridColumn colIDCardPlace;
        private BandedGridColumn colImage;
        private BandedGridColumn colInformatic;
        private BandedGridColumn colInsuranceCode;
        private BandedGridColumn colInsuranceDate;
        private BandedGridColumn colInsuranceSalary;
        private BandedGridColumn colLanguage;
        private BandedGridColumn colLastName;
        private BandedGridColumn colMainAddress;
        private BandedGridColumn colMarriage;
        private BandedGridColumn colNationality;
        private BandedGridColumn colPosition;
        private BandedGridColumn colProfessional;
        private BandedGridColumn colReligion;
        private BandedGridColumn colSex;
        private BandedGridColumn colStatus;
        private BandedGridColumn colTestFromDate;
        private BandedGridColumn colTestToDate;
        private BandedGridColumn colWeight;
        private IContainer components = null;
        private CardView cvList;
        private BandedGridView gbList;
        private GridControl gcList;
        private GridBand gridBand1;
        private GridBand gridBand2;
        private GridBand gridBand3;
        private GridBand gridBand4;
        private GridBand gridBand5;
        private GridBand gridBand6;
        private GridBand gridBand7;
        private GridBand gridBand8;
        private GridBand gridBand9;
        private GridColumn gridColumn1;
        private GridColumn gridColumn10;
        private GridColumn gridColumn11;
        private GridColumn gridColumn12;
        private GridColumn gridColumn13;
        private GridColumn gridColumn14;
        private GridColumn gridColumn15;
        private GridColumn gridColumn16;
        private GridColumn gridColumn17;
        private GridColumn gridColumn18;
        private GridColumn gridColumn19;
        private GridColumn gridColumn2;
        private GridColumn gridColumn20;
        private GridColumn gridColumn21;
        private GridColumn gridColumn22;
        private GridColumn gridColumn23;
        private GridColumn gridColumn24;
        private GridColumn gridColumn25;
        private GridColumn gridColumn26;
        private GridColumn gridColumn27;
        private GridColumn gridColumn28;
        private GridColumn gridColumn29;
        private GridColumn gridColumn3;
        private GridColumn gridColumn30;
        private GridColumn gridColumn31;
        private GridColumn gridColumn32;
        private GridColumn gridColumn33;
        private GridColumn gridColumn34;
        private GridColumn gridColumn35;
        private GridColumn gridColumn36;
        private GridColumn gridColumn37;
        private GridColumn gridColumn38;
        private GridColumn gridColumn39;
        private GridColumn gridColumn4;
        private GridColumn gridColumn40;
        private GridColumn gridColumn5;
        private GridColumn gridColumn6;
        private GridColumn gridColumn7;
        private GridColumn gridColumn8;
        private GridColumn gridColumn9;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private string m_Code = MyLogin.Code;
        private string m_EmployeeCode = "";
        private int m_IndexKey = 1;
        private int m_Level = MyLogin.Level;
        private GridViewColumnButtonMenu menu;
        private PopupMenu popupMenu1;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemImageComboBox repositoryItemImageComboBox1;
        private RepositoryItemPictureEdit rptPhoto;
        private SplitContainerControl splitContainerControl1;
        private ToolTipController toolTip1;
        private xucOrganization xucOrganization1;

        public event ClosedHander Closed;

        public xucEmployee()
        {
            this.InitializeComponent();
            base.RestoreLayout(this.gbList, this);
            this.barManager1.SetPopupContextMenu(this.gcList, this.popupMenu1);
            this.ReLoad();
            this.splitContainerControl1.SplitterPosition = LoadStyle();
        }

        private void Add()
        {
            if (MyRule.IsAdd("bbiEmployee"))
            {
                xfmEmployeeAdd add = new xfmEmployeeAdd(Actions.Add);
                add.Added += new xfmEmployeeAdd.AddedEventHander(this.frm_Added);
                add.ShowDialog();
            }
        }

        private void AddRow(HRM_EMPLOYEE item)
        {
            GridView gbList = this.gbList;
            int focusedRowHandle = gbList.FocusedRowHandle;
            gbList.AddNewRow();
            focusedRowHandle = gbList.FocusedRowHandle;
            gbList.SetRowCellValue(focusedRowHandle, "BranchCode", item.BranchCode);
            gbList.SetRowCellValue(focusedRowHandle, "DepartmentCode", item.DepartmentCode);
            gbList.SetRowCellValue(focusedRowHandle, "GroupCode", item.GroupCode);
            gbList.SetRowCellValue(focusedRowHandle, "EmployeeCode", item.EmployeeCode);
            gbList.SetRowCellValue(focusedRowHandle, "FirstName", item.FirstName);
            gbList.SetRowCellValue(focusedRowHandle, "LastName", item.LastName);
            gbList.SetRowCellValue(focusedRowHandle, "BirthdayDay", item.BirthdayDay);
            gbList.SetRowCellValue(focusedRowHandle, "BirthdayMonth", item.BirthdayMonth);
            gbList.SetRowCellValue(focusedRowHandle, "BirthdayYear", item.BirthdayYear);
            gbList.SetRowCellValue(focusedRowHandle, "BirthPlace", item.BirthPlace);
            gbList.SetRowCellValue(focusedRowHandle, "Sex", item.Sex);
            gbList.SetRowCellValue(focusedRowHandle, "CellPhone", item.CellPhone);
            gbList.SetRowCellValue(focusedRowHandle, "HomePhone", item.HomePhone);
            gbList.SetRowCellValue(focusedRowHandle, "MainAddress", item.MainAddress);
            gbList.SetRowCellValue(focusedRowHandle, "ContactAddress", item.ContactAddress);
            gbList.SetRowCellValue(focusedRowHandle, "Position", item.Position);
            gbList.SetRowCellValue(focusedRowHandle, "IDCard", item.IDCard);
            gbList.SetRowCellValue(focusedRowHandle, "IDCardPlace", item.IDCardPlace);
            gbList.SetRowCellValue(focusedRowHandle, "IDCardDate", item.IDCardDate);
            gbList.SetRowCellValue(focusedRowHandle, "Status", item.Status);
            gbList.SetRowCellValue(focusedRowHandle, "TestFromDate", item.TestFromDate);
            gbList.SetRowCellValue(focusedRowHandle, "TestToDate", item.TestToDate);
            gbList.SetRowCellValue(focusedRowHandle, "BeginDate", item.BeginDate);
            gbList.SetRowCellValue(focusedRowHandle, "EndDate", item.EndDate);
            gbList.SetRowCellValue(focusedRowHandle, "Photo", item.Photo);
            gbList.SetRowCellValue(focusedRowHandle, "Email", item.Email);
            gbList.SetRowCellValue(focusedRowHandle, "Nationality", item.Nationality);
            gbList.SetRowCellValue(focusedRowHandle, "Ethnic", item.Ethnic);
            gbList.SetRowCellValue(focusedRowHandle, "Religion", item.Religion);
            gbList.SetRowCellValue(focusedRowHandle, "Education", item.Education);
            gbList.SetRowCellValue(focusedRowHandle, "Language", item.Language);
            gbList.SetRowCellValue(focusedRowHandle, "Informatic", item.Informatic);
            gbList.SetRowCellValue(focusedRowHandle, "Professional", item.Professional);
            gbList.SetRowCellValue(focusedRowHandle, "Marriage", item.Marriage);
            gbList.SetRowCellValue(focusedRowHandle, "InsuranceCode", item.InsuranceCode);
            gbList.SetRowCellValue(focusedRowHandle, "InsuranceDate", item.InsuranceDate);
            gbList.SetRowCellValue(focusedRowHandle, "BasicSalary", item.BasicSalary);
            gbList.SetRowCellValue(focusedRowHandle, "InsuranceSalary", item.InsuranceSalary);
            gbList.SetRowCellValue(focusedRowHandle, "DateSalary", item.DateSalary);
            gbList.SetRowCellValue(focusedRowHandle, "Health", item.Health);
            gbList.SetRowCellValue(focusedRowHandle, "Weight", item.Weight);
            gbList.SetRowCellValue(focusedRowHandle, "Height", item.Height);
            gbList.SetRowCellValue(focusedRowHandle, "ContractCode", item.ContractCode);
            gbList.SetRowCellValue(focusedRowHandle, "ContractType", item.ContractType);
            gbList.SetRowCellValue(focusedRowHandle, "ContractSignDate", item.ContractSignDate);
            gbList.SetRowCellValue(focusedRowHandle, "ContractFromDate", item.ContractFromDate);
            gbList.SetRowCellValue(focusedRowHandle, "ContractToDate", item.ContractToDate);
            gbList.SetRowCellValue(focusedRowHandle, "EnrollNumber", item.EnrollNumber);
            gbList.SetRowCellValue(focusedRowHandle, "Description", item.Description);
            gbList.UpdateCurrentRow();
        }

        private void bbiAddBranch_ItemClick(object sender, ItemClickEventArgs e)
        {
            xfmBranchAdd add = new xfmBranchAdd(Actions.Add);
            add.Added += new xfmBranchAdd.AddedEventHander(this.xfmBranchAdd_Added);
            add.ShowDialog();
        }

        private void bbiAddDepartment_ItemClick(object sender, ItemClickEventArgs e)
        {
            xfmDepartmentAdd add = new xfmDepartmentAdd(Actions.Add);
            add.Added += new xfmDepartmentAdd.AddedEventHander(this.xfmDepartmentAdd_Added);
            add.ShowDialog();
        }

        private void bbiAddEmployee_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.Add();
        }

        private void bbiAddGroup_ItemClick(object sender, ItemClickEventArgs e)
        {
            Dictionary.xfmGroupAdd add = new Dictionary.xfmGroupAdd(Actions.Add);
            add.Added += new Dictionary.xfmGroupAdd.AddedEventHander(this.xfmGroupAdd_Added);
            add.ShowDialog();
        }

        private void bbiAddRecruitment_ItemClick(object sender, ItemClickEventArgs e)
        {
        }

        private void bbiAllowance_ItemClick(object sender, ItemClickEventArgs e)
        {
            int[] selectedRows = this.gbList.GetSelectedRows();
            DataTable dataTableEmployee = new HRM_EMPLOYEE().CreateNullDataTable();
            for (int i = selectedRows.Length; i > 0; i--)
            {
                try
                {
                    string str = this.gbList.GetRowCellValue(selectedRows[i - 1], "EmployeeCode").ToString();
                    string str2 = this.gbList.GetRowCellValue(selectedRows[i - 1], "FirstName").ToString();
                    string str3 = this.gbList.GetRowCellValue(selectedRows[i - 1], "LastName").ToString();
                    bool flag = bool.Parse(this.gbList.GetRowCellValue(selectedRows[i - 1], "Sex").ToString());
                    int num2 = int.Parse(this.gbList.GetRowCellValue(selectedRows[i - 1], "Status").ToString());
                    dataTableEmployee.Rows.Add(new object[] { str, str2, str3, flag, num2 });
                }
                catch
                {
                }
            }
            if (dataTableEmployee.Rows.Count > 0)
            {
                new xfmDataTableAllowance(dataTableEmployee).ShowDialog();
            }
        }

        private void bbiBirthday_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmBirthday().ShowDialog();
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.RaiseClosedHander();
        }

        private void bbiContract_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmContract().ShowDialog();
        }

        private void bbiDelete_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (MyRule.IsDelete("bbiEmployee"))
            {
                bool flag = false;
                int[] selectedRows = this.gbList.GetSelectedRows();
                if (XtraMessageBox.Show("Bạn c\x00f3 muốn x\x00f3a kh\x00f4ng?", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No)
                {
                    string str;
                    object rowCellValue;
                    base.CreateWaitDialog();
                    HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
                    for (int i = selectedRows.Length; i > 0; i--)
                    {
                        flag = true;
                        rowCellValue = this.gbList.GetRowCellValue(selectedRows[i - 1], "EmployeeCode");
                        if (rowCellValue != null)
                        {
                            SYS_LOG.Insert("Danh S\x00e1ch Nh\x00e2n Vi\x00ean", "Xo\x00e1", rowCellValue.ToString());
                            base.SetWaitDialogCaption("Đang x\x00f3a..." + rowCellValue.ToString());
                            str = hrm_employee.Delete(rowCellValue.ToString());
                            if (str == "OK")
                            {
                                this.gbList.DeleteRow(selectedRows[i - 1]);
                            }
                            else if (str != "OK")
                            {
                                MessageBox.Show("Th\x00f4ng tin kh\x00f4ng được x\x00f3a" + str, "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            }
                        }
                    }
                    this.DoHide();
                    if (!flag && (hrm_employee.GetListCurrentNow(this.m_Level, this.m_Code, -1).Rows.Count != 0))
                    {
                        rowCellValue = this.gbList.GetFocusedRowCellValue("EmployeeCode");
                        if (rowCellValue != null)
                        {
                            SYS_LOG.Insert("Danh S\x00e1ch Nh\x00e2n Vi\x00ean", "Xo\x00e1", rowCellValue.ToString());
                            base.SetWaitDialogCaption("Đang x\x00f3a...");
                            str = hrm_employee.Delete(rowCellValue.ToString());
                            if (str == "OK")
                            {
                                this.gbList.DeleteRow(this.gbList.FocusedRowHandle);
                            }
                            else if (str != "OK")
                            {
                                MessageBox.Show("Th\x00f4ng tin kh\x00f4ng được x\x00f3a\r\n" + str, "Th\x00f4ng b\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            }
                            this.DoHide();
                        }
                    }
                }
            }
        }

        private void bbiEdit_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.Change();
        }

        private void bbiEditCode_ItemClick(object sender, ItemClickEventArgs e)
        {
            xfmEditCode.SuccessEventHander hander = null;
            try
            {
                xfmEditCode code = new xfmEditCode(this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString());
                if (hander == null)
                {
                    hander = (s, i) => this.UpdateRow(i);
                }
                code.Success += hander;
                code.ShowDialog();
            }
            catch
            {
            }
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Danh S\x00e1ch Nh\x00e2n Vi\x00ean", "Xuất");
            base.Export();
        }

        private void bbiFilter_EditValueChanged(object sender, EventArgs e)
        {
            this.m_IndexKey = int.Parse(this.bbiFilter.EditValue.ToString()) - 1;
            if (this.m_IndexKey == 0)
            {
                this.gbList.Appearance.Row.ForeColor = Color.Green;
            }
            else if (this.m_IndexKey == 2)
            {
                this.gbList.Appearance.Row.ForeColor = Color.Blue;
            }
            else if (this.m_IndexKey == 3)
            {
                this.gbList.Appearance.Row.ForeColor = Color.Red;
            }
            else
            {
                this.gbList.Appearance.Row.ForeColor = Color.Black;
            }
            this.xucOrganization1.LoadData(this.m_IndexKey + 1);
        }

        private void bbiImport_ItemClick(object sender, ItemClickEventArgs e)
        {
            xfmImport import = new xfmImport();
            import.Success += o => this.ReLoad();
            import.ShowDialog();
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            SYS_LOG.Insert("Danh S\x00e1ch Nh\x00e2n Vi\x00ean", "In");
            try
            {
                new xfmOptionPrintEmployee(this.m_Level, this.m_Code, this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString()).ShowDialog();
            }
            catch
            {
                new xfmOptionPrintEmployee(this.m_Level, this.m_Code, "").ShowDialog();
            }
        }

        private void bbiPrint1_ItemClick(object sender, ItemClickEventArgs e)
        {
            xfmPrintPropertiesSelect select = new xfmPrintPropertiesSelect(0, 0);
            select.Printed += delegate (object s, DataTable dt, string title) {
                xfmReport report = new xfmReport();
                rptAutoListEmployee xtraReport = new rptAutoListEmployee(this.m_Level, this.m_Code, dt, title);
                report.SetTitle(title);
                report.ShowPrintPreview(xtraReport);
            };
            select.ShowDialog();
        }

        private void bbiProcess_ItemClick(object sender, ItemClickEventArgs e)
        {
            switch (e.Item.Name)
            {
                case "bbiAssignment":
                    new xfmAssignmentAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;

                case "bbiAdvance":
                    new xfmAdvanceAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;

                case "bbiSalary":
                    new xfmSalaryAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;

                case "bbiDiscipline":
                    new HRM.CORE.Process.xfmDisciplineAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;

                case "bbiReward":
                    new HRM.CORE.Process.xfmRewardAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;

                case "bbiPosition":
                    new HRM.CORE.Process.xfmPositionAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;

                case "bbiRate":
                    new HRM.CORE.Process.xfmRateAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;

                case "bbiTraining":
                    new HRM.CORE.Process.xfmTrainingAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;

                case "bbiAccident":
                    new xfmAccidentAdd(Actions.Add, this.m_EmployeeCode).ShowDialog();
                    break;
            }
        }

        private void bbiRefresh_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.ReLoad();
        }

        private void bbiSchedule_ItemClick(object sender, ItemClickEventArgs e)
        {
            int[] selectedRows = this.gbList.GetSelectedRows();
            DataTable dataTableEmployee = new HRM_EMPLOYEE().CreateNullDataTable();
            for (int i = selectedRows.Length; i > 0; i--)
            {
                try
                {
                    string str = this.gbList.GetRowCellValue(selectedRows[i - 1], "EmployeeCode").ToString();
                    string str2 = this.gbList.GetRowCellValue(selectedRows[i - 1], "FirstName").ToString();
                    string str3 = this.gbList.GetRowCellValue(selectedRows[i - 1], "LastName").ToString();
                    bool flag = bool.Parse(this.gbList.GetRowCellValue(selectedRows[i - 1], "Sex").ToString());
                    int num2 = int.Parse(this.gbList.GetRowCellValue(selectedRows[i - 1], "Status").ToString());
                    dataTableEmployee.Rows.Add(new object[] { str, str2, str3, flag, num2 });
                }
                catch
                {
                }
            }
            if (dataTableEmployee.Rows.Count > 0)
            {
                new xfmDataTableSchedule(dataTableEmployee).ShowDialog();
            }
        }

        private void bbiTransfer_ItemClick(object sender, ItemClickEventArgs e)
        {
            xfmTransfer.SuccessEventHander hander = null;
            int[] selectedRows = this.gbList.GetSelectedRows();
            DataTable employee = new HRM_EMPLOYEE().CreateNullDataTable();
            for (int i = selectedRows.Length; i > 0; i--)
            {
                try
                {
                    string str = this.gbList.GetRowCellValue(selectedRows[i - 1], "EmployeeCode").ToString();
                    string str2 = this.gbList.GetRowCellValue(selectedRows[i - 1], "FirstName").ToString();
                    string str3 = this.gbList.GetRowCellValue(selectedRows[i - 1], "LastName").ToString();
                    bool flag = bool.Parse(this.gbList.GetRowCellValue(selectedRows[i - 1], "Sex").ToString());
                    int num2 = int.Parse(this.gbList.GetRowCellValue(selectedRows[i - 1], "Status").ToString());
                    employee.Rows.Add(new object[] { str, str2, str3, flag, num2 });
                }
                catch
                {
                }
            }
            if (employee.Rows.Count > 0)
            {
                xfmTransfer transfer = new xfmTransfer(employee);
                if (hander == null)
                {
                    hander = o => this.ReLoad();
                }
                transfer.Success += hander;
                transfer.ShowDialog();
            }
        }

        private void Change()
        {
            if (MyRule.IsAccess("bbiEmployee"))
            {
                HRM_EMPLOYEE item = new HRM_EMPLOYEE();
                object focusedRowCellValue = this.gbList.GetFocusedRowCellValue("EmployeeCode");
                if (focusedRowCellValue != null)
                {
                    base.SetWaitDialogCaption("Đang kiểm tra dữ liệu....");
                    if (item.Get(focusedRowCellValue.ToString()) != "OK")
                    {
                        this.DoHide();
                        XtraMessageBox.Show("Dữ liệu kh\x00f4ng tồn tại", "Th\x00f4ng B\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    }
                    else
                    {
                        this.DoHide();
                        xfmEmployeeAdd add = new xfmEmployeeAdd(Actions.Update, item);
                        add.Updated += new xfmEmployeeAdd.UpdatedEventHander(this.frm_Updated);
                        add.Added += new xfmEmployeeAdd.AddedEventHander(this.frm_Added);
                        add.ShowDialog();
                    }
                }
            }
        }

        public void DisableMenu(bool disable)
        {
            this.bbiEdit.Enabled = !disable;
            this.bbiDelete.Enabled = !disable;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void frm_Added(object sender, HRM_EMPLOYEE Item)
        {
            this.ReLoad();
        }

        private void frm_Updated(object sender, HRM_EMPLOYEE Item)
        {
            this.UpdateRow(Item);
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void gbList_DoubleClick(object sender, EventArgs e)
        {
            if (this.gbList.RowCount != 0)
            {
                this.Change();
            }
        }

        private void gbList_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            try
            {
                this.m_EmployeeCode = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
            }
            catch
            {
            }
        }

        private void gbList_KeyDown(object sender, KeyEventArgs e)
        {
            this.ucList_ListKeyDown(sender, e);
            if ((e.KeyCode == Keys.Delete) && (this.gbList.RowCount != 0))
            {
                this.Delete();
                this.SetMenu(null);
            }
        }

        private void gbList_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                base.DoShowMenu(this.gbList.CalcHitInfo(new Point(e.X, e.Y)), this.gbList, this);
            }
            this.SetMenu(null);
        }

        private void gbList_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            Common.Class.RowClickEventArgs args = new Common.Class.RowClickEventArgs(e.RowHandle, e.Column.ColumnHandle);
            this.SetMenu(args);
            try
            {
                this.toolTip1.HideHint();
                switch (Convert.ToInt32(this.gbList.GetFocusedRowCellValue(this.colStatus).ToString()))
                {
                    case 0:
                        this.toolTip1.ShowHint("Đang thử việc!" + Environment.NewLine + "Từ ng\x00e0y: " + Convert.ToDateTime(this.gbList.GetFocusedRowCellValue(this.colTestFromDate).ToString()).ToShortDateString() + Environment.NewLine + "Đến ng\x00e0y: " + Convert.ToDateTime(this.gbList.GetFocusedRowCellValue(this.colTestToDate).ToString()).ToShortDateString());
                        break;

                    case 3:
                        this.toolTip1.ShowHint("Đ\x00e3 nghỉ việc!" + Environment.NewLine + "Từ ng\x00e0y: " + Convert.ToDateTime(this.gbList.GetFocusedRowCellValue(this.colEndDate).ToString()).ToShortDateString());
                        break;
                }
            }
            catch
            {
            }
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            MenuButton button = new MenuButton();
            ItemCommand command = new ItemCommand();
            ItemCommand command2 = new ItemCommand();
            ItemCommand command3 = new ItemCommand();
            ItemCommand command4 = new ItemCommand();
            ItemCommand command5 = new ItemCommand();
            ItemCommand command6 = new ItemCommand();
            ItemCommand command7 = new ItemCommand();
            ItemCommand command8 = new ItemCommand();
            ItemCommand command9 = new ItemCommand();
            ItemCommand command10 = new ItemCommand();
            ItemCommand command11 = new ItemCommand();
            ItemCommand command12 = new ItemCommand();
            ItemCommand command13 = new ItemCommand();
            ItemCommand command14 = new ItemCommand();
            ItemCommand command15 = new ItemCommand();
            ItemCommand command16 = new ItemCommand();
            ItemCommand command17 = new ItemCommand();
            ItemCommand command18 = new ItemCommand();
            ItemCommand command19 = new ItemCommand();
            ItemCommand command20 = new ItemCommand();
            ItemCommand command21 = new ItemCommand();
            ItemCommand command22 = new ItemCommand();
            ItemCommand command23 = new ItemCommand();
            ItemCommand command24 = new ItemCommand();
            ItemCommand command25 = new ItemCommand();
            ItemCommand command26 = new ItemCommand();
            ItemCommand command27 = new ItemCommand();
            ItemCommand command28 = new ItemCommand();
            ItemCommand command29 = new ItemCommand();
            StyleFormatCondition condition = new StyleFormatCondition();
            StyleFormatCondition condition2 = new StyleFormatCondition();
            StyleFormatCondition condition3 = new StyleFormatCondition();
            StyleFormatCondition condition4 = new StyleFormatCondition();
            StyleFormatCondition condition5 = new StyleFormatCondition();
            StyleFormatCondition condition6 = new StyleFormatCondition();
            StyleFormatCondition condition7 = new StyleFormatCondition();
            StyleFormatCondition condition8 = new StyleFormatCondition();
            StyleFormatCondition condition9 = new StyleFormatCondition();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucEmployee));
            this.colBirthday = new BandedGridColumn();
            this.gridColumn29 = new GridColumn();
            this.splitContainerControl1 = new SplitContainerControl();
            this.xucOrganization1 = new xucOrganization();
            this.gcList = new GridControl();
            this.gbList = new BandedGridView();
            this.gridBand4 = new GridBand();
            this.colEmployeeCode = new BandedGridColumn();
            this.colFirstName = new BandedGridColumn();
            this.colLastName = new BandedGridColumn();
            this.gridBand5 = new GridBand();
            this.colBranch = new BandedGridColumn();
            this.colDepartment = new BandedGridColumn();
            this.colGroup = new BandedGridColumn();
            this.gridBand1 = new GridBand();
            this.colImage = new BandedGridColumn();
            this.rptPhoto = new RepositoryItemPictureEdit();
            this.colSex = new BandedGridColumn();
            this.colGender = new BandedGridColumn();
            this.colBirthdayDay = new BandedGridColumn();
            this.colBirthdayMonth = new BandedGridColumn();
            this.colBirthdayYear = new BandedGridColumn();
            this.colBirthPlace = new BandedGridColumn();
            this.colCellPhone = new BandedGridColumn();
            this.colHomePhone = new BandedGridColumn();
            this.colEmail = new BandedGridColumn();
            this.colMainAddress = new BandedGridColumn();
            this.colContactAddress = new BandedGridColumn();
            this.colPosition = new BandedGridColumn();
            this.colStatus = new BandedGridColumn();
            this.colBeginDate = new BandedGridColumn();
            this.colEndDate = new BandedGridColumn();
            this.colNationality = new BandedGridColumn();
            this.colEthnic = new BandedGridColumn();
            this.colReligion = new BandedGridColumn();
            this.colEducation = new BandedGridColumn();
            this.colLanguage = new BandedGridColumn();
            this.colInformatic = new BandedGridColumn();
            this.colProfessional = new BandedGridColumn();
            this.colMarriage = new BandedGridColumn();
            this.colHealth = new BandedGridColumn();
            this.colHeight = new BandedGridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colWeight = new BandedGridColumn();
            this.gridBand7 = new GridBand();
            this.colInsuranceCode = new BandedGridColumn();
            this.colInsuranceDate = new BandedGridColumn();
            this.gridBand6 = new GridBand();
            this.colIDCard = new BandedGridColumn();
            this.colIDCardDate = new BandedGridColumn();
            this.colIDCardPlace = new BandedGridColumn();
            this.gridBand8 = new GridBand();
            this.colTestFromDate = new BandedGridColumn();
            this.colTestToDate = new BandedGridColumn();
            this.gridBand3 = new GridBand();
            this.colContractCode = new BandedGridColumn();
            this.colContractType = new BandedGridColumn();
            this.colContractSignDate = new BandedGridColumn();
            this.colContractFromDate = new BandedGridColumn();
            this.colContractToDate = new BandedGridColumn();
            this.gridBand9 = new GridBand();
            this.colBasicSalary = new BandedGridColumn();
            this.colInsuranceSalary = new BandedGridColumn();
            this.colDateSalary = new BandedGridColumn();
            this.gridBand2 = new GridBand();
            this.colEnrollNumber = new BandedGridColumn();
            this.colDescription = new BandedGridColumn();
            this.cvList = new CardView();
            this.gridColumn21 = new GridColumn();
            this.gridColumn22 = new GridColumn();
            this.gridColumn23 = new GridColumn();
            this.gridColumn24 = new GridColumn();
            this.gridColumn25 = new GridColumn();
            this.gridColumn26 = new GridColumn();
            this.gridColumn27 = new GridColumn();
            this.gridColumn28 = new GridColumn();
            this.gridColumn30 = new GridColumn();
            this.gridColumn31 = new GridColumn();
            this.gridColumn32 = new GridColumn();
            this.gridColumn33 = new GridColumn();
            this.gridColumn34 = new GridColumn();
            this.gridColumn35 = new GridColumn();
            this.gridColumn36 = new GridColumn();
            this.gridColumn37 = new GridColumn();
            this.gridColumn38 = new GridColumn();
            this.gridColumn39 = new GridColumn();
            this.gridColumn40 = new GridColumn();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.gridColumn3 = new GridColumn();
            this.gridColumn4 = new GridColumn();
            this.gridColumn5 = new GridColumn();
            this.gridColumn6 = new GridColumn();
            this.gridColumn7 = new GridColumn();
            this.gridColumn8 = new GridColumn();
            this.gridColumn9 = new GridColumn();
            this.gridColumn10 = new GridColumn();
            this.gridColumn11 = new GridColumn();
            this.gridColumn12 = new GridColumn();
            this.gridColumn13 = new GridColumn();
            this.gridColumn14 = new GridColumn();
            this.gridColumn15 = new GridColumn();
            this.gridColumn16 = new GridColumn();
            this.gridColumn17 = new GridColumn();
            this.gridColumn18 = new GridColumn();
            this.gridColumn19 = new GridColumn();
            this.gridColumn20 = new GridColumn();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbiAddBranch = new BarButtonItem();
            this.bbiAddDepartment = new BarButtonItem();
            this.bbiAddGroup = new BarButtonItem();
            this.bbiAddEmployee = new BarButtonItem();
            this.bbiEdit = new BarButtonItem();
            this.bbiDelete = new BarButtonItem();
            this.bbiFilter = new BarEditItem();
            this.repositoryItemImageComboBox1 = new RepositoryItemImageComboBox();
            this.barSubItem3 = new BarSubItem();
            this.bbiPrint = new BarButtonItem();
            this.bbiPrint1 = new BarButtonItem();
            this.bbiImport = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiRefresh = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.barSubItem1 = new BarSubItem();
            this.bbiBirthday = new BarButtonItem();
            this.barButtonItem1 = new BarButtonItem();
            this.barSubItem2 = new BarSubItem();
            this.bbiAssignment = new BarButtonItem();
            this.bbiReward = new BarButtonItem();
            this.bbiDiscipline = new BarButtonItem();
            this.bbiTraining = new BarButtonItem();
            this.bbiAdvance = new BarButtonItem();
            this.bbiRate = new BarButtonItem();
            this.bbiPosition = new BarButtonItem();
            this.bbiSalary = new BarButtonItem();
            this.bbiContract = new BarButtonItem();
            this.bbiTransfer = new BarButtonItem();
            this.bbiSchedule = new BarButtonItem();
            this.barSubItem4 = new BarSubItem();
            this.bbiEditCode = new BarButtonItem();
            this.bbiAllowance = new BarButtonItem();
            this.toolTip1 = new ToolTipController(this.components);
            this.popupMenu1 = new PopupMenu(this.components);
            this.splitContainerControl1.BeginInit();
            this.splitContainerControl1.SuspendLayout();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.rptPhoto.BeginInit();
            this.repCalculator.BeginInit();
            this.cvList.BeginInit();
            this.barManager1.BeginInit();
            this.repositoryItemImageComboBox1.BeginInit();
            this.imageCollection2.BeginInit();
            this.popupMenu1.BeginInit();
            base.SuspendLayout();
            this.colBirthday.AppearanceCell.Options.UseTextOptions = true;
            this.colBirthday.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colBirthday.Caption = "Ng\x00e0y sinh";
            this.colBirthday.FieldName = "Birthday";
            this.colBirthday.Name = "colBirthday";
            this.colBirthday.OptionsColumn.AllowEdit = false;
            this.colBirthday.OptionsColumn.ReadOnly = true;
            this.colBirthday.UnboundExpression = "Iif([BirthdayDay] == 0  And [BirthdayMonth] == 0,[BirthdayYear] ,Iif([BirthdayDay] == 0,[BirthdayMonth]+'/'+[BirthdayYear] ,[BirthdayDay]+'/'+[BirthdayMonth]+'/'+[BirthdayYear] ) )";
            this.colBirthday.UnboundType = UnboundColumnType.String;
            this.colBirthday.Visible = true;
            this.colBirthday.Width = 0x42;
            this.gridColumn29.Caption = "Ng\x00e0y sinh";
            this.gridColumn29.FieldName = "Birthday";
            this.gridColumn29.Name = "gridColumn29";
            this.gridColumn29.OptionsColumn.AllowEdit = false;
            this.gridColumn29.OptionsColumn.ReadOnly = true;
            this.gridColumn29.Visible = true;
            this.gridColumn29.VisibleIndex = 8;
            this.gridColumn29.Width = 0x42;
            this.splitContainerControl1.Dock = DockStyle.Fill;
            this.splitContainerControl1.Location = new Point(0, 0x1a);
            this.splitContainerControl1.Name = "splitContainerControl1";
            this.splitContainerControl1.Panel1.Controls.Add(this.xucOrganization1);
            this.splitContainerControl1.Panel1.Text = "Panel1";
            this.splitContainerControl1.Panel2.Controls.Add(this.gcList);
            this.splitContainerControl1.Panel2.Text = "Panel2";
            this.splitContainerControl1.Size = new Size(0x515, 0x22e);
            this.splitContainerControl1.SplitterPosition = 270;
            this.splitContainerControl1.TabIndex = 4;
            this.splitContainerControl1.Text = "splitContainerControl1";
            this.splitContainerControl1.SplitterPositionChanged += new EventHandler(this.splitContainerControl1_SplitterPositionChanged);
            this.xucOrganization1.Dock = DockStyle.Fill;
            this.xucOrganization1.IsClose = CloseOrNew.None;
            this.xucOrganization1.Location = new Point(0, 0);
            this.xucOrganization1.Name = "xucOrganization1";
            this.xucOrganization1.NotSave = false;
            command.Caption = "";
            command.Enable = false;
            command.Visibility = BarItemVisibility.Never;
            button.Add = command;
            command2.Caption = "";
            command2.Enable = false;
            command2.Visibility = BarItemVisibility.Never;
            button.Cancel = command2;
            command3.Caption = "";
            command3.Enable = false;
            command3.Visibility = BarItemVisibility.Never;
            button.Change = command3;
            command4.Caption = "";
            command4.Enable = false;
            command4.Visibility = BarItemVisibility.Never;
            button.Close = command4;
            command5.Caption = "";
            command5.Enable = false;
            command5.Visibility = BarItemVisibility.Never;
            button.Custom = command5;
            command6.Caption = "";
            command6.Enable = false;
            command6.Visibility = BarItemVisibility.Never;
            button.Delete = command6;
            command7.Caption = "";
            command7.Enable = false;
            command7.Visibility = BarItemVisibility.Never;
            button.Export = command7;
            command8.Caption = "";
            command8.Enable = false;
            command8.Visibility = BarItemVisibility.Never;
            button.Filter = command8;
            command9.Caption = "";
            command9.Enable = false;
            command9.Visibility = BarItemVisibility.Never;
            button.FilterCustomer = command9;
            command10.Caption = "";
            command10.Enable = false;
            command10.Visibility = BarItemVisibility.Never;
            button.FilterStock = command10;
            command11.Caption = "";
            command11.Enable = false;
            command11.Visibility = BarItemVisibility.Never;
            button.Find = command11;
            button.GClose = false;
            button.GCommand = false;
            button.GExport = false;
            command12.Caption = "";
            command12.Enable = false;
            command12.Visibility = BarItemVisibility.Never;
            button.Go = command12;
            button.GOption = false;
            button.GPrint = false;
            button.GRecords = false;
            button.GSearchBar = false;
            button.GSettings = false;
            button.GVaildation = false;
            command13.Caption = "";
            command13.Enable = false;
            command13.Visibility = BarItemVisibility.Never;
            button.Import = command13;
            command14.Caption = "";
            command14.Enable = false;
            command14.Visibility = BarItemVisibility.Never;
            button.Next = command14;
            command15.Caption = "";
            command15.Enable = false;
            command15.Visibility = BarItemVisibility.Never;
            button.PageSetup = command15;
            button.PHome = false;
            command16.Caption = "";
            command16.Enable = false;
            command16.Visibility = BarItemVisibility.Never;
            button.Previous = command16;
            command17.Caption = "";
            command17.Enable = false;
            command17.Visibility = BarItemVisibility.Never;
            button.Print = command17;
            command18.Caption = "";
            command18.Enable = false;
            command18.Visibility = BarItemVisibility.Never;
            button.PrintPreview = command18;
            button.PTool = false;
            command19.Caption = "";
            command19.Enable = false;
            command19.Visibility = BarItemVisibility.Never;
            button.Redo = command19;
            command20.Caption = "";
            command20.Enable = false;
            command20.Visibility = BarItemVisibility.Never;
            button.Refresh = command20;
            command21.Caption = "";
            command21.Enable = false;
            command21.Visibility = BarItemVisibility.Never;
            button.Save = command21;
            command22.Caption = "";
            command22.Enable = false;
            command22.Visibility = BarItemVisibility.Never;
            button.SaveAndClose = command22;
            command23.Caption = "";
            command23.Enable = false;
            command23.Visibility = BarItemVisibility.Never;
            button.SaveAndNew = command23;
            command24.Caption = "";
            command24.Enable = false;
            command24.Visibility = BarItemVisibility.Never;
            button.Search = command24;
            command25.Caption = "";
            command25.Enable = false;
            command25.Visibility = BarItemVisibility.Never;
            button.SearchText = command25;
            command26.Caption = "";
            command26.Enable = false;
            command26.Visibility = BarItemVisibility.Never;
            button.Task = command26;
            command27.Caption = "";
            command27.Enable = false;
            command27.Visibility = BarItemVisibility.Never;
            button.Undo = command27;
            command28.Caption = "";
            command28.Enable = false;
            command28.Visibility = BarItemVisibility.Never;
            button.Vaildate = command28;
            command29.Caption = "";
            command29.Enable = false;
            command29.Visibility = BarItemVisibility.Never;
            button.View = command29;
            this.xucOrganization1.RibbonBar = button;
            this.xucOrganization1.Size = new Size(270, 0x22e);
            this.xucOrganization1.Status = Actions.None;
            this.xucOrganization1.TabIndex = 1;
            this.xucOrganization1.Title = "";
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0, 0);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.rptPhoto, this.repCalculator });
            this.gcList.Size = new Size(0x401, 0x22e);
            this.gcList.TabIndex = 3;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList, this.cvList });
            this.gbList.Appearance.BandPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.BandPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Bands.AddRange(new GridBand[] { this.gridBand4, this.gridBand5, this.gridBand1, this.gridBand7, this.gridBand6, this.gridBand8, this.gridBand3, this.gridBand9, this.gridBand2 });
            this.gbList.ColumnPanelRowHeight = 0x20;
            this.gbList.Columns.AddRange(new BandedGridColumn[] { 
                this.colBranch, this.colDepartment, this.colGroup, this.colImage, this.colEmployeeCode, this.colFirstName, this.colLastName, this.colSex, this.colGender, this.colBirthdayDay, this.colBirthdayMonth, this.colBirthdayYear, this.colBirthday, this.colBirthPlace, this.colCellPhone, this.colHomePhone, 
                this.colMainAddress, this.colContactAddress, this.colPosition, this.colIDCard, this.colIDCardDate, this.colIDCardPlace, this.colStatus, this.colTestFromDate, this.colTestToDate, this.colBeginDate, this.colEndDate, this.colEmail, this.colNationality, this.colEthnic, this.colReligion, this.colEducation, 
                this.colLanguage, this.colInformatic, this.colProfessional, this.colMarriage, this.colInsuranceCode, this.colInsuranceDate, this.colBasicSalary, this.colInsuranceSalary, this.colDateSalary, this.colHealth, this.colHeight, this.colWeight, this.colContractCode, this.colContractType, this.colContractSignDate, this.colContractFromDate, 
                this.colContractToDate, this.colEnrollNumber, this.colDescription
             });
            this.gbList.FixedLineWidth = 1;
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            condition.Appearance.ForeColor = Color.Green;
            condition.Appearance.Options.UseForeColor = true;
            condition.ApplyToRow = true;
            condition.Condition = FormatConditionEnum.Expression;
            condition.Expression = "[Status] == 0 And [TestToDate] >= UtcNow()";
            condition2.Appearance.ForeColor = Color.FromArgb(0xff, 0x80, 0);
            condition2.Appearance.Options.UseForeColor = true;
            condition2.ApplyToRow = true;
            condition2.Condition = FormatConditionEnum.Expression;
            condition2.Expression = "[Status] == 2";
            condition3.Appearance.ForeColor = Color.Red;
            condition3.Appearance.Options.UseForeColor = true;
            condition3.ApplyToRow = true;
            condition3.Condition = FormatConditionEnum.Expression;
            condition3.Expression = "[Status] == 3 And [EndDate] <= UtcNow()";
            condition4.Appearance.ForeColor = Color.FromArgb(0xff, 0x80, 0);
            condition4.Appearance.Options.UseForeColor = true;
            condition4.Column = this.colBirthday;
            condition4.Condition = FormatConditionEnum.Expression;
            condition4.Expression = "[BirthdayMonth] ==GetMonth(UtcNow())";
            condition5.Appearance.ForeColor = Color.FromArgb(0xc0, 0, 0);
            condition5.Appearance.Options.UseForeColor = true;
            condition5.Column = this.colBirthday;
            condition5.Condition = FormatConditionEnum.Expression;
            condition5.Expression = "[BirthdayDay] ==GetDay(UtcNow()) And [BirthdayMonth] ==GetMonth(UtcNow())";
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { condition, condition2, condition3, condition4, condition5 });
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.RowAutoHeight = true;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.FocusedRowChanged += new FocusedRowChangedEventHandler(this.gbList_FocusedRowChanged);
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gbList.KeyDown += new KeyEventHandler(this.gbList_KeyDown);
            this.gbList.MouseDown += new MouseEventHandler(this.gbList_MouseDown);
            this.gbList.DoubleClick += new EventHandler(this.gbList_DoubleClick);
            this.gbList.RowCellClick += new RowCellClickEventHandler(this.gbList_RowCellClick);
            this.gridBand4.Columns.Add(this.colEmployeeCode);
            this.gridBand4.Columns.Add(this.colFirstName);
            this.gridBand4.Columns.Add(this.colLastName);
            this.gridBand4.Fixed = FixedStyle.Left;
            this.gridBand4.Name = "gridBand4";
            this.gridBand4.Width = 250;
            this.colEmployeeCode.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.OptionsColumn.AllowEdit = false;
            this.colEmployeeCode.OptionsColumn.ReadOnly = true;
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.Width = 0x4a;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.OptionsColumn.AllowEdit = false;
            this.colFirstName.OptionsColumn.ReadOnly = true;
            this.colFirstName.Visible = true;
            this.colFirstName.Width = 110;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.OptionsColumn.AllowEdit = false;
            this.colLastName.OptionsColumn.ReadOnly = true;
            this.colLastName.Visible = true;
            this.colLastName.Width = 0x42;
            this.gridBand5.Caption = "Ph\x00f2ng ban";
            this.gridBand5.Columns.Add(this.colBranch);
            this.gridBand5.Columns.Add(this.colDepartment);
            this.gridBand5.Columns.Add(this.colGroup);
            this.gridBand5.Name = "gridBand5";
            this.gridBand5.Visible = false;
            this.gridBand5.Width = 0xe1;
            this.colBranch.Caption = "Chi nh\x00e1nh";
            this.colBranch.FieldName = "BranchName";
            this.colBranch.Name = "colBranch";
            this.colBranch.OptionsColumn.ReadOnly = true;
            this.colBranch.Visible = true;
            this.colDepartment.Caption = "Ph\x00f2ng ban";
            this.colDepartment.FieldName = "DepartmentName";
            this.colDepartment.Name = "colDepartment";
            this.colDepartment.OptionsColumn.ReadOnly = true;
            this.colDepartment.Visible = true;
            this.colGroup.Caption = "Tổ nh\x00f3m";
            this.colGroup.FieldName = "GroupName";
            this.colGroup.Name = "colGroup";
            this.colGroup.OptionsColumn.ReadOnly = true;
            this.colGroup.Visible = true;
            this.gridBand1.Columns.Add(this.colImage);
            this.gridBand1.Columns.Add(this.colSex);
            this.gridBand1.Columns.Add(this.colGender);
            this.gridBand1.Columns.Add(this.colBirthdayDay);
            this.gridBand1.Columns.Add(this.colBirthdayMonth);
            this.gridBand1.Columns.Add(this.colBirthdayYear);
            this.gridBand1.Columns.Add(this.colBirthday);
            this.gridBand1.Columns.Add(this.colBirthPlace);
            this.gridBand1.Columns.Add(this.colCellPhone);
            this.gridBand1.Columns.Add(this.colHomePhone);
            this.gridBand1.Columns.Add(this.colEmail);
            this.gridBand1.Columns.Add(this.colMainAddress);
            this.gridBand1.Columns.Add(this.colContactAddress);
            this.gridBand1.Columns.Add(this.colPosition);
            this.gridBand1.Columns.Add(this.colStatus);
            this.gridBand1.Columns.Add(this.colBeginDate);
            this.gridBand1.Columns.Add(this.colEndDate);
            this.gridBand1.Columns.Add(this.colNationality);
            this.gridBand1.Columns.Add(this.colEthnic);
            this.gridBand1.Columns.Add(this.colReligion);
            this.gridBand1.Columns.Add(this.colEducation);
            this.gridBand1.Columns.Add(this.colLanguage);
            this.gridBand1.Columns.Add(this.colInformatic);
            this.gridBand1.Columns.Add(this.colProfessional);
            this.gridBand1.Columns.Add(this.colMarriage);
            this.gridBand1.Columns.Add(this.colHealth);
            this.gridBand1.Columns.Add(this.colHeight);
            this.gridBand1.Columns.Add(this.colWeight);
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.Width = 0x927;
            this.colImage.Caption = "H\x00ecnh ảnh";
            this.colImage.ColumnEdit = this.rptPhoto;
            this.colImage.FieldName = "Photo";
            this.colImage.Name = "colImage";
            this.colImage.OptionsColumn.AllowEdit = false;
            this.colImage.OptionsColumn.ReadOnly = true;
            this.rptPhoto.CustomHeight = 0x30;
            this.rptPhoto.Name = "rptPhoto";
            this.rptPhoto.NullText = "[Chưa chọn h\x00ecnh]";
            this.rptPhoto.SizeMode = PictureSizeMode.Zoom;
            this.colSex.Caption = "Nam (X)";
            this.colSex.FieldName = "Sex";
            this.colSex.Name = "colSex";
            this.colSex.OptionsColumn.AllowEdit = false;
            this.colSex.OptionsColumn.ReadOnly = true;
            this.colSex.Width = 0x38;
            this.colGender.AppearanceCell.Options.UseTextOptions = true;
            this.colGender.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colGender.Caption = "Giới t\x00ednh";
            this.colGender.FieldName = "Gender";
            this.colGender.Name = "colGender";
            this.colGender.OptionsColumn.AllowEdit = false;
            this.colGender.OptionsColumn.ReadOnly = true;
            this.colGender.UnboundExpression = "Iif([Sex] ==  True, 'Nam' ,'Nữ' )";
            this.colGender.UnboundType = UnboundColumnType.String;
            this.colGender.Visible = true;
            this.colGender.Width = 0x3d;
            this.colBirthdayDay.Caption = "Ng\x00e0y sinh (*)";
            this.colBirthdayDay.FieldName = "BirthdayDay";
            this.colBirthdayDay.Name = "colBirthdayDay";
            this.colBirthdayMonth.Caption = "Th\x00e1ng sinh";
            this.colBirthdayMonth.FieldName = "BirthdayMonth";
            this.colBirthdayMonth.Name = "colBirthdayMonth";
            this.colBirthdayYear.Caption = "Năm sinh";
            this.colBirthdayYear.FieldName = "BirthdayYear";
            this.colBirthdayYear.Name = "colBirthdayYear";
            this.colBirthPlace.Caption = "Nơi sinh";
            this.colBirthPlace.FieldName = "BirthPlace";
            this.colBirthPlace.Name = "colBirthPlace";
            this.colBirthPlace.OptionsColumn.AllowEdit = false;
            this.colBirthPlace.OptionsColumn.ReadOnly = true;
            this.colBirthPlace.Visible = true;
            this.colBirthPlace.Width = 0x6f;
            this.colCellPhone.Caption = "Điện thoại";
            this.colCellPhone.FieldName = "CellPhone";
            this.colCellPhone.Name = "colCellPhone";
            this.colCellPhone.OptionsColumn.AllowEdit = false;
            this.colCellPhone.OptionsColumn.ReadOnly = true;
            this.colCellPhone.Visible = true;
            this.colCellPhone.Width = 0x53;
            this.colHomePhone.Caption = "Điện thoại nh\x00e0";
            this.colHomePhone.FieldName = "HomePhone";
            this.colHomePhone.Name = "colHomePhone";
            this.colHomePhone.Visible = true;
            this.colEmail.Caption = "Email";
            this.colEmail.FieldName = "Email";
            this.colEmail.Name = "colEmail";
            this.colEmail.OptionsColumn.AllowEdit = false;
            this.colEmail.OptionsColumn.ReadOnly = true;
            this.colEmail.Visible = true;
            this.colEmail.Width = 0xc9;
            this.colMainAddress.Caption = "Địa chỉ";
            this.colMainAddress.FieldName = "MainAddress";
            this.colMainAddress.Name = "colMainAddress";
            this.colMainAddress.OptionsColumn.AllowEdit = false;
            this.colMainAddress.OptionsColumn.ReadOnly = true;
            this.colMainAddress.Visible = true;
            this.colMainAddress.Width = 0x13f;
            this.colContactAddress.Caption = "Tạm tr\x00fa";
            this.colContactAddress.FieldName = "ContactAddress";
            this.colContactAddress.Name = "colContactAddress";
            this.colContactAddress.Visible = true;
            this.colContactAddress.Width = 0x143;
            this.colPosition.Caption = "Chức vụ";
            this.colPosition.FieldName = "Position";
            this.colPosition.Name = "colPosition";
            this.colPosition.OptionsColumn.AllowEdit = false;
            this.colPosition.Visible = true;
            this.colPosition.Width = 0x8b;
            this.colStatus.Caption = "Trạng th\x00e1i";
            this.colStatus.FieldName = "Status";
            this.colStatus.Name = "colStatus";
            this.colStatus.OptionsColumn.AllowEdit = false;
            this.colStatus.OptionsColumn.ReadOnly = true;
            this.colStatus.Visible = true;
            this.colBeginDate.Caption = "Ng\x00e0y v\x00e0o l\x00e0m";
            this.colBeginDate.FieldName = "BeginDate";
            this.colBeginDate.Name = "colBeginDate";
            this.colBeginDate.Visible = true;
            this.colEndDate.Caption = "Ng\x00e0y nghỉ";
            this.colEndDate.FieldName = "EndDate";
            this.colEndDate.Name = "colEndDate";
            this.colEndDate.OptionsColumn.AllowEdit = false;
            this.colEndDate.OptionsColumn.ReadOnly = true;
            this.colNationality.Caption = "Quốc tịch";
            this.colNationality.FieldName = "Nationality";
            this.colNationality.Name = "colNationality";
            this.colNationality.OptionsColumn.AllowEdit = false;
            this.colNationality.OptionsColumn.ReadOnly = true;
            this.colNationality.Visible = true;
            this.colEthnic.Caption = "D\x00e2n tộc";
            this.colEthnic.FieldName = "Ethnic";
            this.colEthnic.Name = "colEthnic";
            this.colEthnic.OptionsColumn.AllowEdit = false;
            this.colEthnic.OptionsColumn.ReadOnly = true;
            this.colEthnic.Visible = true;
            this.colReligion.Caption = "T\x00f4n gi\x00e1o";
            this.colReligion.FieldName = "Religion";
            this.colReligion.Name = "colReligion";
            this.colReligion.OptionsColumn.AllowEdit = false;
            this.colReligion.OptionsColumn.ReadOnly = true;
            this.colReligion.Visible = true;
            this.colEducation.Caption = "Học vấn";
            this.colEducation.FieldName = "Education";
            this.colEducation.Name = "colEducation";
            this.colEducation.OptionsColumn.AllowEdit = false;
            this.colEducation.OptionsColumn.ReadOnly = true;
            this.colEducation.Visible = true;
            this.colLanguage.Caption = "Ngoại ngữ";
            this.colLanguage.FieldName = "Language";
            this.colLanguage.Name = "colLanguage";
            this.colLanguage.OptionsColumn.AllowEdit = false;
            this.colLanguage.OptionsColumn.ReadOnly = true;
            this.colLanguage.Visible = true;
            this.colInformatic.Caption = "Tin học";
            this.colInformatic.FieldName = "Informatic";
            this.colInformatic.Name = "colInformatic";
            this.colInformatic.OptionsColumn.AllowEdit = false;
            this.colInformatic.OptionsColumn.ReadOnly = true;
            this.colInformatic.Visible = true;
            this.colProfessional.Caption = "Chuy\x00ean m\x00f4n";
            this.colProfessional.FieldName = "Professional";
            this.colProfessional.Name = "colProfessional";
            this.colProfessional.OptionsColumn.AllowEdit = false;
            this.colProfessional.OptionsColumn.ReadOnly = true;
            this.colProfessional.Visible = true;
            this.colMarriage.Caption = "T\x00ecnh trạng h\x00f4n nh\x00e2n";
            this.colMarriage.FieldName = "Marriage";
            this.colMarriage.Name = "colMarriage";
            this.colMarriage.OptionsColumn.AllowEdit = false;
            this.colMarriage.OptionsColumn.ReadOnly = true;
            this.colMarriage.Visible = true;
            this.colHealth.Caption = "T\x00ecnh trạng sức khỏe";
            this.colHealth.FieldName = "Health";
            this.colHealth.Name = "colHealth";
            this.colHealth.OptionsColumn.AllowEdit = false;
            this.colHealth.OptionsColumn.ReadOnly = true;
            this.colHealth.Visible = true;
            this.colHealth.Width = 0x54;
            this.colHeight.Caption = "Chiều cao";
            this.colHeight.ColumnEdit = this.repCalculator;
            this.colHeight.FieldName = "Height";
            this.colHeight.Name = "colHeight";
            this.colHeight.OptionsColumn.AllowEdit = false;
            this.colHeight.OptionsColumn.ReadOnly = true;
            this.colHeight.Visible = true;
            this.colHeight.Width = 0x42;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colWeight.Caption = "C\x00e2n nặng";
            this.colWeight.ColumnEdit = this.repCalculator;
            this.colWeight.FieldName = "Weight";
            this.colWeight.Name = "colWeight";
            this.colWeight.OptionsColumn.AllowEdit = false;
            this.colWeight.OptionsColumn.ReadOnly = true;
            this.colWeight.Visible = true;
            this.colWeight.Width = 0x41;
            this.gridBand7.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand7.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand7.Caption = "Bảo hiểm x\x00e3 hội";
            this.gridBand7.Columns.Add(this.colInsuranceCode);
            this.gridBand7.Columns.Add(this.colInsuranceDate);
            this.gridBand7.Name = "gridBand7";
            this.gridBand7.Width = 150;
            this.colInsuranceCode.Caption = "Số sổ BHXH";
            this.colInsuranceCode.FieldName = "InsuranceCode";
            this.colInsuranceCode.Name = "colInsuranceCode";
            this.colInsuranceCode.OptionsColumn.AllowEdit = false;
            this.colInsuranceCode.OptionsColumn.ReadOnly = true;
            this.colInsuranceCode.Visible = true;
            this.colInsuranceDate.Caption = "Ng\x00e0y cấp sổ BHXH";
            this.colInsuranceDate.FieldName = "InsuranceDate";
            this.colInsuranceDate.Name = "colInsuranceDate";
            this.colInsuranceDate.OptionsColumn.AllowEdit = false;
            this.colInsuranceDate.OptionsColumn.ReadOnly = true;
            this.colInsuranceDate.Visible = true;
            this.gridBand6.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand6.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand6.Caption = "Chứng minh nh\x00e2n d\x00e2n";
            this.gridBand6.Columns.Add(this.colIDCard);
            this.gridBand6.Columns.Add(this.colIDCardDate);
            this.gridBand6.Columns.Add(this.colIDCardPlace);
            this.gridBand6.Name = "gridBand6";
            this.gridBand6.Width = 0x112;
            this.colIDCard.Caption = "CMND";
            this.colIDCard.FieldName = "IDCard";
            this.colIDCard.Name = "colIDCard";
            this.colIDCard.OptionsColumn.AllowEdit = false;
            this.colIDCard.OptionsColumn.ReadOnly = true;
            this.colIDCard.Visible = true;
            this.colIDCard.Width = 0x54;
            this.colIDCardDate.Caption = "Ng\x00e0y cấp";
            this.colIDCardDate.FieldName = "IDCardDate";
            this.colIDCardDate.Name = "colIDCardDate";
            this.colIDCardDate.OptionsColumn.AllowEdit = false;
            this.colIDCardDate.OptionsColumn.ReadOnly = true;
            this.colIDCardDate.Visible = true;
            this.colIDCardPlace.Caption = "Nơi cấp";
            this.colIDCardPlace.FieldName = "IDCardPlace";
            this.colIDCardPlace.Name = "colIDCardPlace";
            this.colIDCardPlace.OptionsColumn.AllowEdit = false;
            this.colIDCardPlace.OptionsColumn.ReadOnly = true;
            this.colIDCardPlace.Visible = true;
            this.colIDCardPlace.Width = 0x73;
            this.gridBand8.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand8.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand8.Caption = "Thử việc";
            this.gridBand8.Columns.Add(this.colTestFromDate);
            this.gridBand8.Columns.Add(this.colTestToDate);
            this.gridBand8.Name = "gridBand8";
            this.gridBand8.Width = 150;
            this.colTestFromDate.Caption = "Ng\x00e0y BD thử việc";
            this.colTestFromDate.FieldName = "TestFromDate";
            this.colTestFromDate.Name = "colTestFromDate";
            this.colTestFromDate.OptionsColumn.AllowEdit = false;
            this.colTestFromDate.OptionsColumn.ReadOnly = true;
            this.colTestFromDate.Visible = true;
            this.colTestToDate.Caption = "Ng\x00e0y KT thử việc";
            this.colTestToDate.FieldName = "TestToDate";
            this.colTestToDate.Name = "colTestToDate";
            this.colTestToDate.OptionsColumn.AllowEdit = false;
            this.colTestToDate.OptionsColumn.ReadOnly = true;
            this.colTestToDate.Visible = true;
            this.gridBand3.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand3.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand3.Caption = "Hợp đồng lao động";
            this.gridBand3.Columns.Add(this.colContractCode);
            this.gridBand3.Columns.Add(this.colContractType);
            this.gridBand3.Columns.Add(this.colContractSignDate);
            this.gridBand3.Columns.Add(this.colContractFromDate);
            this.gridBand3.Columns.Add(this.colContractToDate);
            this.gridBand3.Name = "gridBand3";
            this.gridBand3.Width = 0x1bd;
            this.colContractCode.Caption = "M\x00e3 hợp đồng";
            this.colContractCode.FieldName = "ContractCode";
            this.colContractCode.Name = "colContractCode";
            this.colContractCode.OptionsColumn.AllowEdit = false;
            this.colContractCode.OptionsColumn.ReadOnly = true;
            this.colContractCode.Visible = true;
            this.colContractType.Caption = "Loại hợp đồng";
            this.colContractType.FieldName = "ContractType";
            this.colContractType.Name = "colContractType";
            this.colContractType.OptionsColumn.AllowEdit = false;
            this.colContractType.OptionsColumn.ReadOnly = true;
            this.colContractType.Visible = true;
            this.colContractType.Width = 0x91;
            this.colContractSignDate.Caption = "Ng\x00e0y k\x00fd";
            this.colContractSignDate.FieldName = "ContractSignDate";
            this.colContractSignDate.Name = "colContractSignDate";
            this.colContractSignDate.OptionsColumn.AllowEdit = false;
            this.colContractSignDate.OptionsColumn.ReadOnly = true;
            this.colContractSignDate.Visible = true;
            this.colContractFromDate.Caption = "Từ ng\x00e0y";
            this.colContractFromDate.FieldName = "ContractFromDate";
            this.colContractFromDate.Name = "colContractFromDate";
            this.colContractFromDate.OptionsColumn.AllowEdit = false;
            this.colContractFromDate.OptionsColumn.ReadOnly = true;
            this.colContractFromDate.Visible = true;
            this.colContractToDate.Caption = "Đến ng\x00e0y";
            this.colContractToDate.FieldName = "ContractToDate";
            this.colContractToDate.Name = "colContractToDate";
            this.colContractToDate.OptionsColumn.AllowEdit = false;
            this.colContractToDate.OptionsColumn.ReadOnly = true;
            this.colContractToDate.Visible = true;
            this.gridBand9.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand9.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand9.Caption = "Lương";
            this.gridBand9.Columns.Add(this.colBasicSalary);
            this.gridBand9.Columns.Add(this.colInsuranceSalary);
            this.gridBand9.Columns.Add(this.colDateSalary);
            this.gridBand9.Name = "gridBand9";
            this.gridBand9.Width = 0xe1;
            this.colBasicSalary.Caption = "Lương căn bản";
            this.colBasicSalary.ColumnEdit = this.repCalculator;
            this.colBasicSalary.FieldName = "BasicSalary";
            this.colBasicSalary.Name = "colBasicSalary";
            this.colBasicSalary.OptionsColumn.AllowEdit = false;
            this.colBasicSalary.OptionsColumn.ReadOnly = true;
            this.colBasicSalary.Visible = true;
            this.colInsuranceSalary.Caption = "Lương đ\x00f3ng BHXH";
            this.colInsuranceSalary.ColumnEdit = this.repCalculator;
            this.colInsuranceSalary.FieldName = "InsuranceSalary";
            this.colInsuranceSalary.Name = "colInsuranceSalary";
            this.colInsuranceSalary.OptionsColumn.AllowEdit = false;
            this.colInsuranceSalary.OptionsColumn.ReadOnly = true;
            this.colInsuranceSalary.Visible = true;
            this.colDateSalary.Caption = "Ng\x00e0y c\x00f3 hiệu lực";
            this.colDateSalary.FieldName = "DateSalary";
            this.colDateSalary.Name = "colDateSalary";
            this.colDateSalary.Visible = true;
            this.gridBand2.Columns.Add(this.colEnrollNumber);
            this.gridBand2.Columns.Add(this.colDescription);
            this.gridBand2.Name = "gridBand2";
            this.gridBand2.Width = 250;
            this.colEnrollNumber.AppearanceCell.Options.UseTextOptions = true;
            this.colEnrollNumber.AppearanceCell.TextOptions.HAlignment = HorzAlignment.Center;
            this.colEnrollNumber.Caption = "M\x00e3 chấm c\x00f4ng";
            this.colEnrollNumber.FieldName = "EnrollNumber";
            this.colEnrollNumber.Name = "colEnrollNumber";
            this.colEnrollNumber.OptionsColumn.AllowEdit = false;
            this.colEnrollNumber.OptionsColumn.ReadOnly = true;
            this.colEnrollNumber.Visible = true;
            this.colDescription.Caption = "Ghi ch\x00fa";
            this.colDescription.FieldName = "Description";
            this.colDescription.Name = "colDescription";
            this.colDescription.Visible = true;
            this.colDescription.Width = 0xaf;
            this.cvList.Columns.AddRange(new GridColumn[] { 
                this.gridColumn21, this.gridColumn22, this.gridColumn23, this.gridColumn24, this.gridColumn25, this.gridColumn26, this.gridColumn27, this.gridColumn28, this.gridColumn29, this.gridColumn30, this.gridColumn31, this.gridColumn32, this.gridColumn33, this.gridColumn34, this.gridColumn35, this.gridColumn36, 
                this.gridColumn37, this.gridColumn38, this.gridColumn39, this.gridColumn40
             });
            this.cvList.FocusedCardTopFieldIndex = 0;
            condition6.Appearance.ForeColor = Color.Green;
            condition6.Appearance.Options.UseForeColor = true;
            condition6.ApplyToRow = true;
            condition6.Condition = FormatConditionEnum.Expression;
            condition6.Expression = "[Status] == 0 And [TestToDate] >= UtcNow()";
            condition7.Appearance.ForeColor = Color.FromArgb(0xff, 0x80, 0);
            condition7.Appearance.Options.UseForeColor = true;
            condition7.ApplyToRow = true;
            condition7.Condition = FormatConditionEnum.Expression;
            condition7.Expression = "[Status] == 2";
            condition8.Appearance.ForeColor = Color.Red;
            condition8.Appearance.Options.UseForeColor = true;
            condition8.ApplyToRow = true;
            condition8.Condition = FormatConditionEnum.Expression;
            condition8.Expression = "[Status] == 3 And [EndDate] <= UtcNow()";
            condition9.Appearance.BackColor = Color.WhiteSmoke;
            condition9.Appearance.ForeColor = Color.FromArgb(0xc0, 0, 0);
            condition9.Appearance.Options.UseBackColor = true;
            condition9.Appearance.Options.UseForeColor = true;
            condition9.Column = this.gridColumn29;
            condition9.Condition = FormatConditionEnum.Expression;
            condition9.Expression = "GetDay([Birthday]) ==GetDay(UtcNow()) And GetMonth([Birthday]) ==GetMonth(UtcNow())";
            this.cvList.FormatConditions.AddRange(new StyleFormatCondition[] { condition6, condition7, condition8, condition9 });
            this.cvList.GridControl = this.gcList;
            this.cvList.Name = "cvList";
            this.cvList.OptionsBehavior.FocusLeaveOnTab = true;
            this.cvList.OptionsLayout.StoreAllOptions = true;
            this.cvList.OptionsLayout.StoreAppearance = true;
            this.cvList.OptionsSelection.MultiSelect = true;
            this.cvList.VertScrollVisibility = ScrollVisibility.Auto;
            this.gridColumn21.Caption = "Chi nh\x00e1nh";
            this.gridColumn21.FieldName = "BranchName";
            this.gridColumn21.Name = "gridColumn21";
            this.gridColumn21.Visible = true;
            this.gridColumn21.VisibleIndex = 0;
            this.gridColumn22.Caption = "Ph\x00f2ng ban";
            this.gridColumn22.FieldName = "DepartmentName";
            this.gridColumn22.Name = "gridColumn22";
            this.gridColumn22.Visible = true;
            this.gridColumn22.VisibleIndex = 1;
            this.gridColumn23.Caption = "Tổ nh\x00f3m";
            this.gridColumn23.FieldName = "GroupName";
            this.gridColumn23.Name = "gridColumn23";
            this.gridColumn23.Visible = true;
            this.gridColumn23.VisibleIndex = 2;
            this.gridColumn24.Caption = "H\x00ecnh ảnh";
            this.gridColumn24.ColumnEdit = this.rptPhoto;
            this.gridColumn24.FieldName = "Photo";
            this.gridColumn24.Fixed = FixedStyle.Left;
            this.gridColumn24.Name = "gridColumn24";
            this.gridColumn24.OptionsColumn.AllowEdit = false;
            this.gridColumn24.OptionsColumn.ReadOnly = true;
            this.gridColumn24.Visible = true;
            this.gridColumn24.VisibleIndex = 3;
            this.gridColumn25.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.gridColumn25.FieldName = "EmployeeCode";
            this.gridColumn25.Fixed = FixedStyle.Left;
            this.gridColumn25.Name = "gridColumn25";
            this.gridColumn25.OptionsColumn.AllowEdit = false;
            this.gridColumn25.OptionsColumn.ReadOnly = true;
            this.gridColumn25.Visible = true;
            this.gridColumn25.VisibleIndex = 4;
            this.gridColumn25.Width = 0x4a;
            this.gridColumn26.Caption = "Họ l\x00f3t";
            this.gridColumn26.FieldName = "FirstName";
            this.gridColumn26.Fixed = FixedStyle.Left;
            this.gridColumn26.Name = "gridColumn26";
            this.gridColumn26.OptionsColumn.AllowEdit = false;
            this.gridColumn26.OptionsColumn.ReadOnly = true;
            this.gridColumn26.Visible = true;
            this.gridColumn26.VisibleIndex = 5;
            this.gridColumn26.Width = 110;
            this.gridColumn27.Caption = "T\x00ean";
            this.gridColumn27.FieldName = "LastName";
            this.gridColumn27.Fixed = FixedStyle.Left;
            this.gridColumn27.Name = "gridColumn27";
            this.gridColumn27.OptionsColumn.AllowEdit = false;
            this.gridColumn27.OptionsColumn.ReadOnly = true;
            this.gridColumn27.Visible = true;
            this.gridColumn27.VisibleIndex = 6;
            this.gridColumn27.Width = 0x42;
            this.gridColumn28.Caption = "Giới t\x00ednh";
            this.gridColumn28.FieldName = "Sex";
            this.gridColumn28.Name = "gridColumn28";
            this.gridColumn28.OptionsColumn.AllowEdit = false;
            this.gridColumn28.OptionsColumn.ReadOnly = true;
            this.gridColumn28.Visible = true;
            this.gridColumn28.VisibleIndex = 7;
            this.gridColumn28.Width = 0x38;
            this.gridColumn30.Caption = "Nơi sinh";
            this.gridColumn30.FieldName = "BirthPlace";
            this.gridColumn30.Name = "gridColumn30";
            this.gridColumn30.OptionsColumn.AllowEdit = false;
            this.gridColumn30.OptionsColumn.ReadOnly = true;
            this.gridColumn30.Visible = true;
            this.gridColumn30.VisibleIndex = 9;
            this.gridColumn30.Width = 0x6f;
            this.gridColumn31.Caption = "Điện thoại";
            this.gridColumn31.FieldName = "CellPhone";
            this.gridColumn31.Name = "gridColumn31";
            this.gridColumn31.OptionsColumn.AllowEdit = false;
            this.gridColumn31.OptionsColumn.ReadOnly = true;
            this.gridColumn31.Visible = true;
            this.gridColumn31.VisibleIndex = 10;
            this.gridColumn31.Width = 0x53;
            this.gridColumn32.Caption = "Địa chỉ";
            this.gridColumn32.FieldName = "MainAddress";
            this.gridColumn32.Name = "gridColumn32";
            this.gridColumn32.OptionsColumn.AllowEdit = false;
            this.gridColumn32.OptionsColumn.ReadOnly = true;
            this.gridColumn32.Visible = true;
            this.gridColumn32.VisibleIndex = 11;
            this.gridColumn32.Width = 0x13f;
            this.gridColumn33.Caption = "Chức vụ";
            this.gridColumn33.FieldName = "Position";
            this.gridColumn33.Name = "gridColumn33";
            this.gridColumn33.OptionsColumn.AllowEdit = false;
            this.gridColumn33.Visible = true;
            this.gridColumn33.VisibleIndex = 12;
            this.gridColumn33.Width = 0x8b;
            this.gridColumn34.Caption = "CMND";
            this.gridColumn34.FieldName = "IDCard";
            this.gridColumn34.Name = "gridColumn34";
            this.gridColumn34.OptionsColumn.AllowEdit = false;
            this.gridColumn34.OptionsColumn.ReadOnly = true;
            this.gridColumn34.Visible = true;
            this.gridColumn34.VisibleIndex = 13;
            this.gridColumn34.Width = 0x54;
            this.gridColumn35.Caption = "Ng\x00e0y cấp";
            this.gridColumn35.FieldName = "IDCardDate";
            this.gridColumn35.Name = "gridColumn35";
            this.gridColumn35.OptionsColumn.AllowEdit = false;
            this.gridColumn35.OptionsColumn.ReadOnly = true;
            this.gridColumn35.Visible = true;
            this.gridColumn35.VisibleIndex = 14;
            this.gridColumn36.Caption = "Nơi cấp";
            this.gridColumn36.FieldName = "IDCardPlace";
            this.gridColumn36.Name = "gridColumn36";
            this.gridColumn36.OptionsColumn.AllowEdit = false;
            this.gridColumn36.OptionsColumn.ReadOnly = true;
            this.gridColumn36.Visible = true;
            this.gridColumn36.VisibleIndex = 15;
            this.gridColumn36.Width = 0x73;
            this.gridColumn37.Caption = "Trạng th\x00e1i";
            this.gridColumn37.FieldName = "Status";
            this.gridColumn37.Name = "gridColumn37";
            this.gridColumn37.OptionsColumn.AllowEdit = false;
            this.gridColumn37.OptionsColumn.ReadOnly = true;
            this.gridColumn37.Visible = true;
            this.gridColumn37.VisibleIndex = 0x10;
            this.gridColumn38.Caption = "Ng\x00e0y BD thử việc";
            this.gridColumn38.FieldName = "TestFromDate";
            this.gridColumn38.Name = "gridColumn38";
            this.gridColumn38.OptionsColumn.AllowEdit = false;
            this.gridColumn38.OptionsColumn.ReadOnly = true;
            this.gridColumn38.Visible = true;
            this.gridColumn38.VisibleIndex = 0x11;
            this.gridColumn39.Caption = "Ng\x00e0y KT thử việc";
            this.gridColumn39.FieldName = "TestToDate";
            this.gridColumn39.Name = "gridColumn39";
            this.gridColumn39.OptionsColumn.AllowEdit = false;
            this.gridColumn39.OptionsColumn.ReadOnly = true;
            this.gridColumn39.Visible = true;
            this.gridColumn39.VisibleIndex = 0x12;
            this.gridColumn40.Caption = "Ng\x00e0y nghỉ";
            this.gridColumn40.FieldName = "EndDate";
            this.gridColumn40.Name = "gridColumn40";
            this.gridColumn40.OptionsColumn.AllowEdit = false;
            this.gridColumn40.OptionsColumn.ReadOnly = true;
            this.gridColumn40.Visible = true;
            this.gridColumn40.VisibleIndex = 0x13;
            this.gridColumn1.Caption = "Chi nh\x00e1nh";
            this.gridColumn1.FieldName = "BranchName";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption = "Ph\x00f2ng ban";
            this.gridColumn2.FieldName = "DepartmentName";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gridColumn3.Caption = "Tổ nh\x00f3m";
            this.gridColumn3.FieldName = "GroupName";
            this.gridColumn3.Name = "gridColumn3";
            this.gridColumn3.Visible = true;
            this.gridColumn3.VisibleIndex = 2;
            this.gridColumn4.Caption = "H\x00ecnh ảnh";
            this.gridColumn4.ColumnEdit = this.rptPhoto;
            this.gridColumn4.FieldName = "Photo";
            this.gridColumn4.Fixed = FixedStyle.Left;
            this.gridColumn4.Name = "gridColumn4";
            this.gridColumn4.OptionsColumn.AllowEdit = false;
            this.gridColumn4.OptionsColumn.ReadOnly = true;
            this.gridColumn4.Visible = true;
            this.gridColumn4.VisibleIndex = 3;
            this.gridColumn5.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.gridColumn5.FieldName = "EmployeeCode";
            this.gridColumn5.Fixed = FixedStyle.Left;
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.OptionsColumn.AllowEdit = false;
            this.gridColumn5.OptionsColumn.ReadOnly = true;
            this.gridColumn5.Visible = true;
            this.gridColumn5.VisibleIndex = 4;
            this.gridColumn5.Width = 0x4a;
            this.gridColumn6.Caption = "Họ l\x00f3t";
            this.gridColumn6.FieldName = "FirstName";
            this.gridColumn6.Fixed = FixedStyle.Left;
            this.gridColumn6.Name = "gridColumn6";
            this.gridColumn6.OptionsColumn.AllowEdit = false;
            this.gridColumn6.OptionsColumn.ReadOnly = true;
            this.gridColumn6.Visible = true;
            this.gridColumn6.VisibleIndex = 5;
            this.gridColumn6.Width = 110;
            this.gridColumn7.Caption = "T\x00ean";
            this.gridColumn7.FieldName = "LastName";
            this.gridColumn7.Fixed = FixedStyle.Left;
            this.gridColumn7.Name = "gridColumn7";
            this.gridColumn7.OptionsColumn.AllowEdit = false;
            this.gridColumn7.OptionsColumn.ReadOnly = true;
            this.gridColumn7.Visible = true;
            this.gridColumn7.VisibleIndex = 6;
            this.gridColumn7.Width = 0x42;
            this.gridColumn8.Caption = "Giới t\x00ednh";
            this.gridColumn8.FieldName = "Sex";
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.OptionsColumn.AllowEdit = false;
            this.gridColumn8.OptionsColumn.ReadOnly = true;
            this.gridColumn8.Visible = true;
            this.gridColumn8.VisibleIndex = 7;
            this.gridColumn8.Width = 0x38;
            this.gridColumn9.Caption = "Ng\x00e0y sinh";
            this.gridColumn9.FieldName = "Birthday";
            this.gridColumn9.Name = "gridColumn9";
            this.gridColumn9.OptionsColumn.AllowEdit = false;
            this.gridColumn9.OptionsColumn.ReadOnly = true;
            this.gridColumn9.Visible = true;
            this.gridColumn9.VisibleIndex = 8;
            this.gridColumn9.Width = 0x42;
            this.gridColumn10.Caption = "Nơi sinh";
            this.gridColumn10.FieldName = "BirthPlace";
            this.gridColumn10.Name = "gridColumn10";
            this.gridColumn10.OptionsColumn.AllowEdit = false;
            this.gridColumn10.OptionsColumn.ReadOnly = true;
            this.gridColumn10.Visible = true;
            this.gridColumn10.VisibleIndex = 9;
            this.gridColumn10.Width = 0x6f;
            this.gridColumn11.Caption = "Điện thoại";
            this.gridColumn11.FieldName = "CellPhone";
            this.gridColumn11.Name = "gridColumn11";
            this.gridColumn11.OptionsColumn.AllowEdit = false;
            this.gridColumn11.OptionsColumn.ReadOnly = true;
            this.gridColumn11.Visible = true;
            this.gridColumn11.VisibleIndex = 10;
            this.gridColumn11.Width = 0x53;
            this.gridColumn12.Caption = "Địa chỉ";
            this.gridColumn12.FieldName = "MainAddress";
            this.gridColumn12.Name = "gridColumn12";
            this.gridColumn12.OptionsColumn.AllowEdit = false;
            this.gridColumn12.OptionsColumn.ReadOnly = true;
            this.gridColumn12.Visible = true;
            this.gridColumn12.VisibleIndex = 11;
            this.gridColumn12.Width = 0x13f;
            this.gridColumn13.Caption = "Chức vụ";
            this.gridColumn13.FieldName = "Position";
            this.gridColumn13.Name = "gridColumn13";
            this.gridColumn13.OptionsColumn.AllowEdit = false;
            this.gridColumn13.Visible = true;
            this.gridColumn13.VisibleIndex = 12;
            this.gridColumn13.Width = 0x8b;
            this.gridColumn14.Caption = "CMND";
            this.gridColumn14.FieldName = "IDCard";
            this.gridColumn14.Name = "gridColumn14";
            this.gridColumn14.OptionsColumn.AllowEdit = false;
            this.gridColumn14.OptionsColumn.ReadOnly = true;
            this.gridColumn14.Visible = true;
            this.gridColumn14.VisibleIndex = 13;
            this.gridColumn14.Width = 0x54;
            this.gridColumn15.Caption = "Ng\x00e0y cấp";
            this.gridColumn15.FieldName = "IDCardDate";
            this.gridColumn15.Name = "gridColumn15";
            this.gridColumn15.OptionsColumn.AllowEdit = false;
            this.gridColumn15.OptionsColumn.ReadOnly = true;
            this.gridColumn15.Visible = true;
            this.gridColumn15.VisibleIndex = 14;
            this.gridColumn16.Caption = "Nơi cấp";
            this.gridColumn16.FieldName = "IDCardPlace";
            this.gridColumn16.Name = "gridColumn16";
            this.gridColumn16.OptionsColumn.AllowEdit = false;
            this.gridColumn16.OptionsColumn.ReadOnly = true;
            this.gridColumn16.Visible = true;
            this.gridColumn16.VisibleIndex = 15;
            this.gridColumn16.Width = 0x73;
            this.gridColumn17.Caption = "Trạng th\x00e1i";
            this.gridColumn17.FieldName = "Status";
            this.gridColumn17.Name = "gridColumn17";
            this.gridColumn17.OptionsColumn.AllowEdit = false;
            this.gridColumn17.OptionsColumn.ReadOnly = true;
            this.gridColumn17.Visible = true;
            this.gridColumn17.VisibleIndex = 0x10;
            this.gridColumn18.Caption = "Ng\x00e0y BD thử việc";
            this.gridColumn18.FieldName = "TestFromDate";
            this.gridColumn18.Name = "gridColumn18";
            this.gridColumn18.OptionsColumn.AllowEdit = false;
            this.gridColumn18.OptionsColumn.ReadOnly = true;
            this.gridColumn18.Visible = true;
            this.gridColumn18.VisibleIndex = 0x11;
            this.gridColumn19.Caption = "Ng\x00e0y KT thử việc";
            this.gridColumn19.FieldName = "TestToDate";
            this.gridColumn19.Name = "gridColumn19";
            this.gridColumn19.OptionsColumn.AllowEdit = false;
            this.gridColumn19.OptionsColumn.ReadOnly = true;
            this.gridColumn19.Visible = true;
            this.gridColumn19.VisibleIndex = 0x12;
            this.gridColumn20.Caption = "Ng\x00e0y nghỉ";
            this.gridColumn20.FieldName = "EndDate";
            this.gridColumn20.Name = "gridColumn20";
            this.gridColumn20.OptionsColumn.AllowEdit = false;
            this.gridColumn20.OptionsColumn.ReadOnly = true;
            this.gridColumn20.Visible = true;
            this.gridColumn20.VisibleIndex = 0x13;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { 
                this.bbiAddBranch, this.bbiAddDepartment, this.bbiAddGroup, this.bbiAddEmployee, this.bbiEdit, this.bbiDelete, this.bbiPrint, this.bbiRefresh, this.bbiClose, this.bbiExport, this.bbiFilter, this.barSubItem1, this.bbiBirthday, this.barButtonItem1, this.barSubItem2, this.bbiAssignment, 
                this.bbiReward, this.bbiDiscipline, this.bbiTraining, this.bbiAdvance, this.bbiRate, this.bbiPosition, this.bbiSalary, this.bbiContract, this.bbiImport, this.bbiTransfer, this.bbiSchedule, this.barSubItem3, this.bbiPrint1, this.barSubItem4, this.bbiEditCode, this.bbiAllowance
             });
            this.barManager1.MaxItemId = 0x2f;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemImageComboBox1 });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAddBranch, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAddDepartment, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAddGroup, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAddEmployee, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiEdit, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiDelete, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(this.bbiFilter, true), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.barSubItem3, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiImport, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiRefresh, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbiAddBranch.Caption = "Th\x00eam Chi Nh\x00e1nh";
            this.bbiAddBranch.Id = 0;
            this.bbiAddBranch.ImageIndex = 0x45;
            this.bbiAddBranch.Name = "bbiAddBranch";
            this.bbiAddBranch.ItemClick += new ItemClickEventHandler(this.bbiAddBranch_ItemClick);
            this.bbiAddDepartment.Caption = "Th\x00eam Ph\x00f2ng Ban";
            this.bbiAddDepartment.Id = 1;
            this.bbiAddDepartment.ImageIndex = 0x45;
            this.bbiAddDepartment.Name = "bbiAddDepartment";
            this.bbiAddDepartment.ItemClick += new ItemClickEventHandler(this.bbiAddDepartment_ItemClick);
            this.bbiAddGroup.Caption = "Th\x00eam Tổ Nh\x00f3m";
            this.bbiAddGroup.Id = 2;
            this.bbiAddGroup.ImageIndex = 0x45;
            this.bbiAddGroup.Name = "bbiAddGroup";
            this.bbiAddGroup.ItemClick += new ItemClickEventHandler(this.bbiAddGroup_ItemClick);
            this.bbiAddEmployee.Caption = "Th\x00eam Nh\x00e2n Vi\x00ean";
            this.bbiAddEmployee.Id = 3;
            this.bbiAddEmployee.ImageIndex = 0x42;
            this.bbiAddEmployee.Name = "bbiAddEmployee";
            this.bbiAddEmployee.ItemClick += new ItemClickEventHandler(this.bbiAddEmployee_ItemClick);
            this.bbiEdit.Caption = "Sửa";
            this.bbiEdit.Id = 4;
            this.bbiEdit.ImageIndex = 14;
            this.bbiEdit.Name = "bbiEdit";
            this.bbiEdit.ItemClick += new ItemClickEventHandler(this.bbiEdit_ItemClick);
            this.bbiDelete.Caption = "X\x00f3a";
            this.bbiDelete.Id = 5;
            this.bbiDelete.ImageIndex = 13;
            this.bbiDelete.Name = "bbiDelete";
            this.bbiDelete.ItemClick += new ItemClickEventHandler(this.bbiDelete_ItemClick);
            this.bbiFilter.Caption = "barEditItem1";
            this.bbiFilter.Edit = this.repositoryItemImageComboBox1;
            this.bbiFilter.Id = 10;
            this.bbiFilter.Name = "bbiFilter";
            this.bbiFilter.Width = 160;
            this.repositoryItemImageComboBox1.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repositoryItemImageComboBox1.Appearance.Options.UseFont = true;
            this.repositoryItemImageComboBox1.AutoHeight = false;
            this.repositoryItemImageComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemImageComboBox1.Items.AddRange(new ImageComboBoxItem[] { new ImageComboBoxItem("<Tất cả>", 0, -1), new ImageComboBoxItem("<Đang thử việc>", 1, -1), new ImageComboBoxItem("<Đang l\x00e0m việc>", 2, -1), new ImageComboBoxItem("<Đang ngưng việc>", 3, -1), new ImageComboBoxItem("<Đ\x00e3 nghỉ việc>", 4, -1) });
            this.repositoryItemImageComboBox1.Name = "repositoryItemImageComboBox1";
            this.barSubItem3.Caption = "In";
            this.barSubItem3.Id = 0x2a;
            this.barSubItem3.ImageIndex = 9;
            this.barSubItem3.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(this.bbiPrint1) });
            this.barSubItem3.Name = "barSubItem3";
            this.bbiPrint.Caption = "Chọn loại mẫu biểu...";
            this.bbiPrint.Id = 6;
            this.bbiPrint.Name = "bbiPrint";
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiPrint1.Caption = "In danh s\x00e1ch nh\x00e2n vi\x00ean";
            this.bbiPrint1.Id = 0x2b;
            this.bbiPrint1.ImageIndex = 9;
            this.bbiPrint1.Name = "bbiPrint1";
            this.bbiPrint1.ItemClick += new ItemClickEventHandler(this.bbiPrint1_ItemClick);
            this.bbiImport.Caption = "Nạp >";
            this.bbiImport.Id = 0x1b;
            this.bbiImport.ImageIndex = 0x39;
            this.bbiImport.Name = "bbiImport";
            this.bbiImport.ItemClick += new ItemClickEventHandler(this.bbiImport_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 9;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.Name = "bbiExport";
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiRefresh.Caption = "Nạp Lại";
            this.bbiRefresh.Id = 7;
            this.bbiRefresh.ImageIndex = 0x2a;
            this.bbiRefresh.Name = "bbiRefresh";
            this.bbiRefresh.ItemClick += new ItemClickEventHandler(this.bbiRefresh_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 8;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.Name = "bbiClose";
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.barSubItem1.Caption = "Th\x00eam";
            this.barSubItem1.Id = 11;
            this.barSubItem1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiAddBranch), new LinkPersistInfo(this.bbiAddDepartment), new LinkPersistInfo(this.bbiAddGroup), new LinkPersistInfo(this.bbiAddEmployee) });
            this.barSubItem1.Name = "barSubItem1";
            this.bbiBirthday.Caption = "Danh S\x00e1ch Sinh Nhật";
            this.bbiBirthday.Id = 15;
            this.bbiBirthday.Name = "bbiBirthday";
            this.bbiBirthday.Visibility = BarItemVisibility.Never;
            this.bbiBirthday.ItemClick += new ItemClickEventHandler(this.bbiBirthday_ItemClick);
            this.barButtonItem1.Caption = "T\x00e1c Vụ";
            this.barButtonItem1.Id = 0x10;
            this.barButtonItem1.Name = "barButtonItem1";
            this.barSubItem2.Caption = "Qu\x00e1 Tr\x00ecnh L\x00e0m Việc";
            this.barSubItem2.Id = 0x11;
            this.barSubItem2.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiAssignment), new LinkPersistInfo(this.bbiReward), new LinkPersistInfo(this.bbiDiscipline), new LinkPersistInfo(this.bbiTraining), new LinkPersistInfo(this.bbiAdvance), new LinkPersistInfo(this.bbiRate), new LinkPersistInfo(this.bbiPosition), new LinkPersistInfo(this.bbiSalary) });
            this.barSubItem2.Name = "barSubItem2";
            this.bbiAssignment.Caption = "Đi C\x00f4ng T\x00e1c";
            this.bbiAssignment.Id = 0x12;
            this.bbiAssignment.Name = "bbiAssignment";
            this.bbiAssignment.ItemClick += new ItemClickEventHandler(this.bbiProcess_ItemClick);
            this.bbiReward.Caption = "Được Khen Thưởng";
            this.bbiReward.Id = 0x13;
            this.bbiReward.Name = "bbiReward";
            this.bbiReward.ItemClick += new ItemClickEventHandler(this.bbiProcess_ItemClick);
            this.bbiDiscipline.Caption = "Bị Kỷ Luật";
            this.bbiDiscipline.Id = 20;
            this.bbiDiscipline.Name = "bbiDiscipline";
            this.bbiDiscipline.ItemClick += new ItemClickEventHandler(this.bbiProcess_ItemClick);
            this.bbiTraining.Caption = "Đưa Đi Đ\x00e0o Tạo";
            this.bbiTraining.Id = 0x15;
            this.bbiTraining.Name = "bbiTraining";
            this.bbiTraining.ItemClick += new ItemClickEventHandler(this.bbiProcess_ItemClick);
            this.bbiAdvance.Caption = "Tạm Ứng Lương";
            this.bbiAdvance.Id = 0x16;
            this.bbiAdvance.Name = "bbiAdvance";
            this.bbiAdvance.ItemClick += new ItemClickEventHandler(this.bbiProcess_ItemClick);
            this.bbiRate.Caption = "Đ\x00e1nh Gi\x00e1";
            this.bbiRate.Id = 0x17;
            this.bbiRate.Name = "bbiRate";
            this.bbiRate.ItemClick += new ItemClickEventHandler(this.bbiProcess_ItemClick);
            this.bbiPosition.Caption = "Thay Đổi Chức Vụ";
            this.bbiPosition.Id = 0x18;
            this.bbiPosition.Name = "bbiPosition";
            this.bbiPosition.ItemClick += new ItemClickEventHandler(this.bbiProcess_ItemClick);
            this.bbiSalary.Caption = "Thay Đổi Lương";
            this.bbiSalary.Id = 0x19;
            this.bbiSalary.Name = "bbiSalary";
            this.bbiSalary.ItemClick += new ItemClickEventHandler(this.bbiProcess_ItemClick);
            this.bbiContract.Caption = "Hợp Đồng Lao Động";
            this.bbiContract.Id = 0x1a;
            this.bbiContract.Name = "bbiContract";
            this.bbiContract.Visibility = BarItemVisibility.Never;
            this.bbiContract.ItemClick += new ItemClickEventHandler(this.bbiContract_ItemClick);
            this.bbiTransfer.Caption = "Chuyển Ph\x00f2ng Ban";
            this.bbiTransfer.Id = 0x1d;
            this.bbiTransfer.Name = "bbiTransfer";
            this.bbiTransfer.ItemClick += new ItemClickEventHandler(this.bbiTransfer_ItemClick);
            this.bbiSchedule.Caption = "Lập Lịch Tr\x00ecnh L\x00e0m Việc";
            this.bbiSchedule.Id = 30;
            this.bbiSchedule.Name = "bbiSchedule";
            this.bbiSchedule.ItemClick += new ItemClickEventHandler(this.bbiSchedule_ItemClick);
            this.barSubItem4.Caption = "Tiện \x00cdch";
            this.barSubItem4.Id = 0x2c;
            this.barSubItem4.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiEditCode, true) });
            this.barSubItem4.Name = "barSubItem4";
            this.bbiEditCode.Caption = "Thay Đổi M\x00e3 Nh\x00e2n Vi\x00ean";
            this.bbiEditCode.Id = 0x2d;
            this.bbiEditCode.Name = "bbiEditCode";
            this.bbiEditCode.ItemClick += new ItemClickEventHandler(this.bbiEditCode_ItemClick);
            this.bbiAllowance.Caption = "Phụ Cấp Lương";
            this.bbiAllowance.Id = 0x2e;
            this.bbiAllowance.Name = "bbiAllowance";
            this.bbiAllowance.ItemClick += new ItemClickEventHandler(this.bbiAllowance_ItemClick);
            this.toolTip1.AutoPopDelay = 0xfa0;
            this.toolTip1.CloseOnClick = DefaultBoolean.True;
            this.toolTip1.InitialDelay = 1;
            this.toolTip1.ReshowDelay = 1;
            this.toolTip1.Rounded = true;
            this.toolTip1.ShowBeak = true;
            this.popupMenu1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.barSubItem1), new LinkPersistInfo(this.bbiEdit), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiDelete, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(this.bbiBirthday, true), new LinkPersistInfo(this.bbiContract), new LinkPersistInfo(this.barSubItem2), new LinkPersistInfo(this.barSubItem4), new LinkPersistInfo(this.bbiSchedule), new LinkPersistInfo(BarLinkUserDefines.None, false, this.bbiAllowance, false), new LinkPersistInfo(this.bbiTransfer), new LinkPersistInfo(this.bbiRefresh, true), new LinkPersistInfo(this.bbiExport), new LinkPersistInfo(this.bbiClose) });
            this.popupMenu1.Manager = this.barManager1;
            this.popupMenu1.Name = "popupMenu1";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.splitContainerControl1);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucEmployee";
            base.Size = new Size(0x515, 0x248);
            this.splitContainerControl1.EndInit();
            this.splitContainerControl1.ResumeLayout(false);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.rptPhoto.EndInit();
            this.repCalculator.EndInit();
            this.cvList.EndInit();
            this.barManager1.EndInit();
            this.repositoryItemImageComboBox1.EndInit();
            this.imageCollection2.EndInit();
            this.popupMenu1.EndInit();
            base.ResumeLayout(false);
        }

        private void InitMultiLanguages()
        {
            this.bbiAddBranch.Caption = MultiLanguages.GetString("tbl_Employee", "AddBranch", this.bbiAddBranch.Caption);
            this.bbiAddDepartment.Caption = MultiLanguages.GetString("tbl_Employee", "AddDepartment", this.bbiAddDepartment.Caption);
            this.bbiAddGroup.Caption = MultiLanguages.GetString("tbl_Employee", "AddGroup", this.bbiAddGroup.Caption);
            this.bbiAddEmployee.Caption = MultiLanguages.GetString("tbl_Employee", "AddEmployee", this.bbiAddEmployee.Caption);
            this.bbiEdit.Caption = MultiLanguages.GetString("tbl_Employee", "Edit", this.bbiEdit.Caption);
            this.bbiDelete.Caption = MultiLanguages.GetString("tbl_Employee", "Delete", this.bbiDelete.Caption);
            this.bbiPrint.Caption = MultiLanguages.GetString("tbl_Employee", "Print", this.bbiPrint.Caption);
            this.bbiRefresh.Caption = MultiLanguages.GetString("tbl_Employee", "Refresh", this.bbiRefresh.Caption);
            this.bbiImport.Caption = MultiLanguages.GetString("tbl_Employee", "Import", this.bbiImport.Caption);
            this.bbiExport.Caption = MultiLanguages.GetString("tbl_Employee", "Export", this.bbiExport.Caption);
            this.bbiClose.Caption = MultiLanguages.GetString("tbl_Employee", "Close", this.bbiClose.Caption);
            this.colBranch.Caption = MultiLanguages.GetString("tbl_Employee", "BranchName", this.colBranch.Caption);
            this.colDepartment.Caption = MultiLanguages.GetString("tbl_Employee", "DepartmentName", this.colDepartment.Caption);
            this.colGroup.Caption = MultiLanguages.GetString("tbl_Employee", "GroupName", this.colGroup.Caption);
            this.colImage.Caption = MultiLanguages.GetString("tbl_Employee", "Photo", this.colImage.Caption);
            this.colEmployeeCode.Caption = MultiLanguages.GetString("tbl_Employee", "EmployeeCode", this.colEmployeeCode.Caption);
            this.colFirstName.Caption = MultiLanguages.GetString("tbl_Employee", "FirstName", this.colFirstName.Caption);
            this.colLastName.Caption = MultiLanguages.GetString("tbl_Employee", "LastName", this.colLastName.Caption);
            this.colSex.Caption = MultiLanguages.GetString("tbl_Employee", "Sex", this.colSex.Caption);
            this.colBirthday.Caption = MultiLanguages.GetString("tbl_Employee", "Birthday", this.colBirthday.Caption);
            this.colBirthPlace.Caption = MultiLanguages.GetString("tbl_Employee", "Birthplace", this.colBirthPlace.Caption);
            this.colCellPhone.Caption = MultiLanguages.GetString("tbl_Employee", "CellPhone", this.colCellPhone.Caption);
            this.colMainAddress.Caption = MultiLanguages.GetString("tbl_Employee", "MainAddress", this.colMainAddress.Caption);
            this.colPosition.Caption = MultiLanguages.GetString("tbl_Employee", "Position", this.colPosition.Caption);
            this.colIDCard.Caption = MultiLanguages.GetString("tbl_Employee", "IDCard", this.colIDCard.Caption);
            this.colIDCardDate.Caption = MultiLanguages.GetString("tbl_Employee", "IDCardDate", this.colIDCardDate.Caption);
            this.colIDCardPlace.Caption = MultiLanguages.GetString("tbl_Employee", "IDCardPlace", this.colIDCardPlace.Caption);
            this.colStatus.Caption = MultiLanguages.GetString("tbl_Employee", "Status", this.colStatus.Caption);
            this.colTestFromDate.Caption = MultiLanguages.GetString("tbl_Employee", "TestFromDate", this.colTestFromDate.Caption);
            this.colTestToDate.Caption = MultiLanguages.GetString("tbl_Employee", "TestToDate", this.colTestToDate.Caption);
            this.colEndDate.Caption = MultiLanguages.GetString("tbl_Employee", "EndDate", this.colEndDate.Caption);
            this.colNationality.Caption = MultiLanguages.GetString("tbl_Employee", "Nationality", this.colNationality.Caption);
            this.colProfessional.Caption = MultiLanguages.GetString("tbl_Employee", "Professional", this.colProfessional.Caption);
            this.colReligion.Caption = MultiLanguages.GetString("tbl_Employee", "Religion", this.colReligion.Caption);
            this.colMarriage.Caption = MultiLanguages.GetString("tbl_Employee", "Marriage", this.colMarriage.Caption);
            this.colLanguage.Caption = MultiLanguages.GetString("tbl_Employee", "Language", this.colLanguage.Caption);
            this.colInformatic.Caption = MultiLanguages.GetString("tbl_Employee", "Informatic", this.colInformatic.Caption);
            this.colEthnic.Caption = MultiLanguages.GetString("tbl_Employee", "Ethnic", this.colEthnic.Caption);
            this.colEducation.Caption = MultiLanguages.GetString("tbl_Employee", "Education", this.colEducation.Caption);
        }

        private void LoadGrid(int Level, string Code, int Status)
        {
            this.gcList.DataSource = new HRM_EMPLOYEE().GetListCurrentNow(Level, Code, Status);
        }

        private static int LoadStyle()
        {
            try
            {
                DataSet set = new DataSet();
                set.ReadXml(Application.StartupPath + @"\LayoutControl\xucEmployee.xml");
                return int.Parse(set.Tables[0].Rows[0][0].ToString());
            }
            catch
            {
                return 270;
            }
        }

        private void LoadTree()
        {
            this.xucOrganization1.LoadData();
            this.xucOrganization1.Selected += delegate (object s, Organization o) {
                if (o.Level == 0)
                {
                    this.LoadGrid(this.m_Level = 0, this.m_Code = "", this.m_IndexKey);
                }
                else if (o.Level == 1)
                {
                    this.LoadGrid(this.m_Level = 1, this.m_Code = o.BranchCode, this.m_IndexKey);
                }
                else if (o.Level == 2)
                {
                    this.LoadGrid(this.m_Level = 2, this.m_Code = o.DepartmentCode, this.m_IndexKey);
                }
                else if (o.Level == 3)
                {
                    this.LoadGrid(this.m_Level = 3, this.m_Code = o.GroupCode, this.m_IndexKey);
                }
            };
            this.xucOrganization1.Updated += o => this.xucOrganization1.LoadData();
        }

        private void RaiseClosedHander()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void ReLoad()
        {
            base.SetWaitDialogCaption("Đang nạp dữ liệu...");
            this.m_IndexKey = 1;
            this.bbiFilter.EditValue = 2;
            this.bbiFilter.EditValueChanged += new EventHandler(this.bbiFilter_EditValueChanged);
            this.LoadTree();
            this.LoadGrid(this.m_Level, this.m_Code, this.m_IndexKey);
            this.DoHide();
        }

        private static void SaveStyle(int Position)
        {
            DataSet set = new DataSet();
            using (DataTable table = new DataTable())
            {
                table.Columns.Add("SplitterPosition", typeof(string));
                object[] objArray = new object[] { Position.ToString() };
                table.Rows.Add(new object[0]);
                table.Rows[0][0] = objArray[0];
                set.Tables.Add(table);
            }
            try
            {
                set.WriteXml(Application.StartupPath + @"\LayoutControl\xucEmployee.xml");
            }
            catch
            {
            }
        }

        private void SetMenu(Common.Class.RowClickEventArgs e)
        {
            object rowCellValue = this.gbList.GetRowCellValue(this.gbList.FocusedRowHandle, "EmployeeCode");
            this.DisableMenu(false);
            if (rowCellValue == null)
            {
                this.DisableMenu(true);
            }
        }

        private void splitContainerControl1_SplitterPositionChanged(object sender, EventArgs e)
        {
            SaveStyle(this.splitContainerControl1.SplitterPosition);
        }

        private void ucList_ListKeyDown(object sender, KeyEventArgs key)
        {
            if (key.KeyCode == Keys.F2)
            {
                if (this.gbList.RowCount != 0)
                {
                    this.Change();
                }
            }
            else if ((key.KeyCode == Keys.Control) | (key.KeyCode == Keys.E))
            {
                if (this.gbList.RowCount != 0)
                {
                    this.Change();
                }
            }
            else if (key.KeyCode == Keys.Enter)
            {
                if (this.gbList.RowCount != 0)
                {
                    this.Change();
                }
            }
            else if (key.KeyCode == Keys.F5)
            {
                this.ReLoad();
            }
            else if ((key.KeyCode == Keys.Control) | (key.KeyCode == Keys.N))
            {
                this.Add();
            }
            else if ((key.KeyCode == Keys.Control) | (key.KeyCode == Keys.T))
            {
                this.Add();
            }
        }

        private void UpdateRow(HRM_EMPLOYEE item)
        {
            BandedGridView gbList = this.gbList;
            int focusedRowHandle = this.gbList.FocusedRowHandle;
            gbList.SetRowCellValue(focusedRowHandle, "BranchCode", item.BranchCode);
            gbList.SetRowCellValue(focusedRowHandle, "DepartmentCode", item.DepartmentCode);
            gbList.SetRowCellValue(focusedRowHandle, "GroupCode", item.GroupCode);
            gbList.SetRowCellValue(focusedRowHandle, "EmployeeCode", item.EmployeeCode);
            gbList.SetRowCellValue(focusedRowHandle, "FirstName", item.FirstName);
            gbList.SetRowCellValue(focusedRowHandle, "LastName", item.LastName);
            gbList.SetRowCellValue(focusedRowHandle, "BirthdayDay", item.BirthdayDay);
            gbList.SetRowCellValue(focusedRowHandle, "BirthdayMonth", item.BirthdayMonth);
            gbList.SetRowCellValue(focusedRowHandle, "BirthdayYear", item.BirthdayYear);
            gbList.SetRowCellValue(focusedRowHandle, "BirthPlace", item.BirthPlace);
            gbList.SetRowCellValue(focusedRowHandle, "Sex", item.Sex);
            gbList.SetRowCellValue(focusedRowHandle, "CellPhone", item.CellPhone);
            gbList.SetRowCellValue(focusedRowHandle, "HomePhone", item.HomePhone);
            gbList.SetRowCellValue(focusedRowHandle, "MainAddress", item.MainAddress);
            gbList.SetRowCellValue(focusedRowHandle, "ContactAddress", item.ContactAddress);
            gbList.SetRowCellValue(focusedRowHandle, "Position", item.Position);
            gbList.SetRowCellValue(focusedRowHandle, "IDCard", item.IDCard);
            gbList.SetRowCellValue(focusedRowHandle, "IDCardPlace", item.IDCardPlace);
            gbList.SetRowCellValue(focusedRowHandle, "IDCardDate", item.IDCardDate);
            gbList.SetRowCellValue(focusedRowHandle, "Status", item.Status);
            gbList.SetRowCellValue(focusedRowHandle, "TestFromDate", item.TestFromDate);
            gbList.SetRowCellValue(focusedRowHandle, "TestToDate", item.TestToDate);
            gbList.SetRowCellValue(focusedRowHandle, "BeginDate", item.BeginDate);
            gbList.SetRowCellValue(focusedRowHandle, "EndDate", item.EndDate);
            gbList.SetRowCellValue(focusedRowHandle, "Photo", item.Photo);
            gbList.SetRowCellValue(focusedRowHandle, "Email", item.Email);
            gbList.SetRowCellValue(focusedRowHandle, "Nationality", item.Nationality);
            gbList.SetRowCellValue(focusedRowHandle, "Ethnic", item.Ethnic);
            gbList.SetRowCellValue(focusedRowHandle, "Religion", item.Religion);
            gbList.SetRowCellValue(focusedRowHandle, "Education", item.Education);
            gbList.SetRowCellValue(focusedRowHandle, "Language", item.Language);
            gbList.SetRowCellValue(focusedRowHandle, "Informatic", item.Informatic);
            gbList.SetRowCellValue(focusedRowHandle, "Professional", item.Professional);
            gbList.SetRowCellValue(focusedRowHandle, "Marriage", item.Marriage);
            gbList.SetRowCellValue(focusedRowHandle, "InsuranceCode", item.InsuranceCode);
            gbList.SetRowCellValue(focusedRowHandle, "InsuranceDate", item.InsuranceDate);
            gbList.SetRowCellValue(focusedRowHandle, "BasicSalary", item.BasicSalary);
            gbList.SetRowCellValue(focusedRowHandle, "InsuranceSalary", item.InsuranceSalary);
            gbList.SetRowCellValue(focusedRowHandle, "DateSalary", item.DateSalary);
            gbList.SetRowCellValue(focusedRowHandle, "Health", item.Health);
            gbList.SetRowCellValue(focusedRowHandle, "Weight", item.Weight);
            gbList.SetRowCellValue(focusedRowHandle, "Height", item.Height);
            gbList.SetRowCellValue(focusedRowHandle, "ContractCode", item.ContractCode);
            gbList.SetRowCellValue(focusedRowHandle, "ContractType", item.ContractType);
            gbList.SetRowCellValue(focusedRowHandle, "ContractSignDate", item.ContractSignDate);
            gbList.SetRowCellValue(focusedRowHandle, "ContractFromDate", item.ContractFromDate);
            gbList.SetRowCellValue(focusedRowHandle, "ContractToDate", item.ContractToDate);
            gbList.SetRowCellValue(focusedRowHandle, "EnrollNumber", item.EnrollNumber);
            gbList.SetRowCellValue(focusedRowHandle, "Description", item.Description);
            gbList.UpdateCurrentRow();
        }

        private void xfmBranchAdd_Added(object sender, HRM_BRANCH Item)
        {
            this.ReLoad();
        }

        private void xfmDepartmentAdd_Added(object sender, HRM_DEPARTMENT Item)
        {
            this.ReLoad();
        }

        private void xfmGroupAdd_Added(object sender, HRM_GROUP Item)
        {
            this.ReLoad();
        }

        public delegate void ClosedHander(object sender);
    }
}

